@mks2508/mks-ui 0.4.0 → 0.5.1

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 (129) hide show
  1. package/dist/index.css +129 -0
  2. package/dist/react-ui/blocks/Terminal/TerminalDisplay.d.ts +46 -0
  3. package/dist/react-ui/blocks/Terminal/TerminalDisplay.d.ts.map +1 -0
  4. package/dist/react-ui/blocks/Terminal/TerminalDisplay.js +175 -0
  5. package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.d.ts +21 -0
  6. package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.d.ts.map +1 -0
  7. package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.js +31 -0
  8. package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts +56 -0
  9. package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts.map +1 -0
  10. package/dist/react-ui/blocks/Terminal/chrome.d.ts +14 -0
  11. package/dist/react-ui/blocks/Terminal/chrome.d.ts.map +1 -0
  12. package/dist/react-ui/blocks/Terminal/chrome.js +6 -0
  13. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts +5 -5
  14. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts.map +1 -1
  15. package/dist/react-ui/blocks/Terminal/display.d.ts +20 -0
  16. package/dist/react-ui/blocks/Terminal/display.d.ts.map +1 -0
  17. package/dist/react-ui/blocks/Terminal/display.js +9 -0
  18. package/dist/react-ui/blocks/Terminal/index.d.ts +4 -0
  19. package/dist/react-ui/blocks/Terminal/index.d.ts.map +1 -1
  20. package/dist/react-ui/blocks/Terminal/index.js +4 -1
  21. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts +7 -6
  22. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts.map +1 -1
  23. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.js +51 -30
  24. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts +35 -0
  25. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts.map +1 -0
  26. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.js +57 -0
  27. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts +7 -2
  28. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts.map +1 -1
  29. package/dist/react-ui/primitives/AutoHeight/index.d.ts +1 -1
  30. package/dist/react-ui/primitives/CountingNumber/index.d.ts +1 -1
  31. package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.d.ts.map +1 -1
  32. package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.js +2 -0
  33. package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.d.ts.map +1 -1
  34. package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.js +2 -0
  35. package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.d.ts.map +1 -1
  36. package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.js +2 -0
  37. package/dist/react-ui/primitives/waapi/Morph/useMorph.d.ts.map +1 -1
  38. package/dist/react-ui/primitives/waapi/Morph/useMorph.js +2 -0
  39. package/dist/react-ui/primitives/waapi/Reorder/useReorder.d.ts.map +1 -1
  40. package/dist/react-ui/primitives/waapi/Reorder/useReorder.js +2 -0
  41. package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.d.ts.map +1 -1
  42. package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.js +2 -0
  43. package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts +1 -1
  44. package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts +1 -1
  45. package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.d.ts.map +1 -1
  46. package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.js +2 -0
  47. package/dist/react-ui/primitives/waapi/core/useElementRegistry.d.ts.map +1 -1
  48. package/dist/react-ui/primitives/waapi/core/useElementRegistry.js +2 -0
  49. package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.d.ts.map +1 -1
  50. package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.js +2 -0
  51. package/dist/react-ui/primitives/waapi/core/usePositionCapture.d.ts.map +1 -1
  52. package/dist/react-ui/primitives/waapi/core/usePositionCapture.js +2 -0
  53. package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts +1 -1
  54. package/dist/react-ui/ui/Accordion/Accordion.types.d.ts +1 -1
  55. package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts +1 -1
  56. package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts +1 -1
  57. package/dist/react-ui/ui/Badge/Badge.styles.d.ts +1 -1
  58. package/dist/react-ui/ui/Badge/Badge.types.d.ts +1 -1
  59. package/dist/react-ui/ui/Button/Button.styles.d.ts +1 -1
  60. package/dist/react-ui/ui/Button/Button.types.d.ts +1 -1
  61. package/dist/react-ui/ui/Card/Card.styles.d.ts +1 -1
  62. package/dist/react-ui/ui/Card/Card.types.d.ts +1 -1
  63. package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts +1 -1
  64. package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts +1 -1
  65. package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts +1 -1
  66. package/dist/react-ui/ui/Combobox/Combobox.types.d.ts +1 -1
  67. package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +1 -1
  68. package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts +1 -1
  69. package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts +1 -1
  70. package/dist/react-ui/ui/DataCard/DataCard.types.d.ts +1 -1
  71. package/dist/react-ui/ui/DataCard/index.d.ts +1 -1
  72. package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts +1 -1
  73. package/dist/react-ui/ui/Dialog/Dialog.types.d.ts +1 -1
  74. package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts +1 -1
  75. package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts +1 -1
  76. package/dist/react-ui/ui/Field/Field.styles.d.ts +1 -1
  77. package/dist/react-ui/ui/Field/Field.types.d.ts +1 -1
  78. package/dist/react-ui/ui/Input/Input.styles.d.ts +1 -1
  79. package/dist/react-ui/ui/Input/Input.types.d.ts +1 -1
  80. package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts +1 -1
  81. package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts +1 -1
  82. package/dist/react-ui/ui/InputGroup/index.d.ts.map +1 -1
  83. package/dist/react-ui/ui/InputGroup/index.js +2 -0
  84. package/dist/react-ui/ui/Label/Label.styles.d.ts +1 -1
  85. package/dist/react-ui/ui/Label/Label.types.d.ts +1 -1
  86. package/dist/react-ui/ui/Menu/Menu.styles.d.ts +1 -1
  87. package/dist/react-ui/ui/Menu/Menu.types.d.ts +2 -2
  88. package/dist/react-ui/ui/Popover/Popover.styles.d.ts +1 -1
  89. package/dist/react-ui/ui/Popover/Popover.types.d.ts +1 -1
  90. package/dist/react-ui/ui/Progress/Progress.styles.d.ts +1 -1
  91. package/dist/react-ui/ui/Progress/Progress.types.d.ts +2 -2
  92. package/dist/react-ui/ui/Select/Select.styles.d.ts +1 -1
  93. package/dist/react-ui/ui/Select/Select.types.d.ts +1 -1
  94. package/dist/react-ui/ui/Separator/Separator.styles.d.ts +1 -1
  95. package/dist/react-ui/ui/Separator/Separator.types.d.ts +1 -1
  96. package/dist/react-ui/ui/Switch/Switch.styles.d.ts +1 -1
  97. package/dist/react-ui/ui/Switch/Switch.types.d.ts +1 -1
  98. package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +1 -1
  99. package/dist/react-ui/ui/Tabs/Tabs.types.d.ts +3 -3
  100. package/dist/react-ui/ui/TextFlow/TextFlow.styles.d.ts +1 -1
  101. package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts +1 -1
  102. package/dist/react-ui/ui/Textarea/Textarea.types.d.ts +1 -1
  103. package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts +1 -1
  104. package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts +1 -1
  105. package/package.json +41 -34
  106. package/src/css.d.ts +6 -0
  107. package/src/react-ui/blocks/Terminal/TerminalDisplay.styles.ts +38 -0
  108. package/src/react-ui/blocks/Terminal/TerminalDisplay.tsx +254 -0
  109. package/src/react-ui/blocks/Terminal/TerminalDisplay.types.ts +73 -0
  110. package/src/react-ui/blocks/Terminal/chrome.ts +25 -0
  111. package/src/react-ui/blocks/Terminal/display.ts +46 -0
  112. package/src/react-ui/blocks/Terminal/index.ts +8 -0
  113. package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.ts +75 -0
  114. package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.tsx +69 -40
  115. package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.ts +8 -2
  116. package/src/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.ts +1 -0
  117. package/src/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.ts +1 -0
  118. package/src/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.ts +1 -0
  119. package/src/react-ui/primitives/waapi/Morph/useMorph.ts +1 -0
  120. package/src/react-ui/primitives/waapi/Reorder/useReorder.ts +1 -0
  121. package/src/react-ui/primitives/waapi/Reorder/useReorderPresence.ts +1 -0
  122. package/src/react-ui/primitives/waapi/core/useAnimationOrchestrator.ts +1 -0
  123. package/src/react-ui/primitives/waapi/core/useElementRegistry.ts +1 -0
  124. package/src/react-ui/primitives/waapi/core/useFLIPAnimation.ts +1 -0
  125. package/src/react-ui/primitives/waapi/core/usePositionCapture.ts +1 -0
  126. package/src/react-ui/ui/Accordion/index.tsx +3 -3
  127. package/src/react-ui/ui/InputGroup/index.tsx +2 -0
  128. /package/dist/react-ui/blocks/Terminal/panel/{terminal-filter-dropdown.module-Bovc57nm.css → terminal-filter-dropdown.module-CNVWCefU.css} +0 -0
  129. /package/dist/react-ui/blocks/Terminal/panel/{terminal-session-tabs.module-QyxHO7cN.css → terminal-session-tabs.module-cmyJ11jP.css} +0 -0
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /**
3
3
  * Visual regions for: DataCard component family.
4
4
  * Each slot maps to: customizable visual region.
@@ -1,5 +1,5 @@
1
1
  import type { VariantProps } from 'class-variance-authority';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { dataCardVariants, DataCardSlot } from './DataCard.styles';
4
4
  export type { DataCardSlot } from './DataCard.styles';
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { dataCardVariants } from './DataCard.styles';
3
- import type { SlotOverrides } from '@/core/types';
3
+ import type { SlotOverrides } from '../../../core/types';
4
4
  import type { IDataCardProps, IDataCardValueProps, IDataCardLabelProps, IDataCardToggleProps, IDataCardActionsProps, IDataCardBracketProps, IDataCardState, DataCardSlot } from './DataCard.types';
5
5
  /**
6
6
  * Context type for DataCard state management.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @module @mks2508/mks-ui/react/ui/Dialog/Dialog.styles
9
9
  */
10
- import type { StyleSlots } from '@/core/types';
10
+ import type { StyleSlots } from '../../../core/types';
11
11
  import type { DialogSlot } from './Dialog.types';
12
12
  /**
13
13
  * Default Tailwind classes for each Dialog visual region.
@@ -9,7 +9,7 @@
9
9
  import type * as React from 'react';
10
10
  import type { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
11
11
  import type { HTMLMotionProps } from 'motion/react';
12
- import type { SlotOverrides, IBaseConfig } from '@/core/types';
12
+ import type { SlotOverrides, IBaseConfig } from '../../../core/types';
13
13
  /**
14
14
  * Visual regions available for class-name overrides via the `slots` prop.
15
15
  *
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /** Visual regions for the DropdownMenu component family. */
3
3
  type DropdownMenuSlot = 'root' | 'content' | 'item' | 'label' | 'separator' | 'shortcut' | 'subTrigger' | 'subContent' | 'checkboxItem' | 'radioItem';
4
4
  declare const dropdownMenuStyles: StyleSlots<DropdownMenuSlot>;
@@ -1,5 +1,5 @@
1
1
  import type { Menu as MenuPrimitive } from '@base-ui/react/menu';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { DropdownMenuSlot } from './DropdownMenu.styles';
4
4
  /** Props for the DropdownMenu root. */
5
5
  type IDropdownMenuProps = MenuPrimitive.Root.Props;
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /** Visual regions for the Field component family. */
3
3
  type FieldSlot = 'root' | 'set' | 'legend' | 'group' | 'content' | 'label' | 'title' | 'description' | 'separator' | 'error';
4
4
  declare const fieldStyles: StyleSlots<FieldSlot>;
@@ -1,5 +1,5 @@
1
1
  import type { VariantProps } from 'class-variance-authority';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { fieldVariants, FieldSlot } from './Field.styles';
4
4
  /** Props for the FieldSet component. */
5
5
  interface IFieldSetProps extends React.ComponentProps<'fieldset'> {
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /** Visual regions for the Input component. */
3
3
  type InputSlot = 'root';
4
4
  declare const inputStyles: StyleSlots<InputSlot>;
@@ -1,4 +1,4 @@
1
- import type { SlotOverrides } from '@/core/types';
1
+ import type { SlotOverrides } from '../../../core/types';
2
2
  import type { InputSlot } from './Input.styles';
3
3
  /** Props for the Input component. */
4
4
  interface IInputProps extends React.ComponentProps<'input'> {
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /** Visual regions for the InputGroup component family. */
3
3
  type InputGroupSlot = 'root' | 'addon' | 'button' | 'text' | 'input' | 'textarea';
4
4
  declare const inputGroupStyles: StyleSlots<InputGroupSlot>;
@@ -1,5 +1,5 @@
1
1
  import type { VariantProps } from 'class-variance-authority';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { inputGroupAddonVariants, inputGroupButtonVariants, InputGroupSlot } from './InputGroup.styles';
4
4
  /** Props for the InputGroup container. */
5
5
  interface IInputGroupProps extends React.ComponentProps<'div'> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-ui/ui/InputGroup/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;GAUG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CASnE;AAED,wEAAwE;AACxE,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAgBvB;AAED,+DAA+D;AAC/D,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAW,EACX,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAmBxB;AAED,2DAA2D;AAC3D,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAOpE;AAED,8EAA8E;AAC9E,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAQtE;AAED,oFAAoF;AACpF,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAQ1B;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AAEF,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-ui/ui/InputGroup/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;GAUG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CASnE;AAED,wEAAwE;AACxE,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAgBvB;AAED,+DAA+D;AAC/D,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAW,EACX,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAmBxB;AAED,2DAA2D;AAC3D,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAOpE;AAED,8EAA8E;AAC9E,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAQtE;AAED,oFAAoF;AACpF,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAQ1B;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AAEF,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { cn } from "../../lib/utils.js";
2
4
  import { Button } from "../Button/index.js";
3
5
  import { Input } from "../Input/index.js";
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  type LabelSlot = 'root';
3
3
  declare const labelStyles: StyleSlots<LabelSlot>;
4
4
  export { labelStyles };
@@ -1,4 +1,4 @@
1
- import type { SlotOverrides } from '@/core/types';
1
+ import type { SlotOverrides } from '../../../core/types';
2
2
  import type { LabelSlot } from './Label.styles';
3
3
  /** Props for the Label component. */
4
4
  interface ILabelProps extends React.ComponentProps<'label'> {
@@ -12,7 +12,7 @@
12
12
  * // menuStyles.popup => default popup classes
13
13
  * ```
14
14
  */
15
- import type { StyleSlots } from '@/core/types';
15
+ import type { StyleSlots } from '../../../core/types';
16
16
  /**
17
17
  * Union of all visual regions (slots) in the Menu component tree.
18
18
  *
@@ -10,8 +10,8 @@
10
10
  import type * as React from 'react';
11
11
  import type { Menu as MenuPrimitive } from '@base-ui/react/menu';
12
12
  import type { HTMLMotionProps, Transition } from 'motion/react';
13
- import type { IBaseConfig, SlotOverrides } from '@/core/types';
14
- import type { IHighlightProps, IHighlightItemProps } from '@/react-ui/primitives/Highlight';
13
+ import type { IBaseConfig, SlotOverrides } from '../../../core/types';
14
+ import type { IHighlightProps, IHighlightItemProps } from '../../../react-ui/primitives/Highlight';
15
15
  import type { MenuSlot } from './Menu.styles';
16
16
  /**
17
17
  * Configuration interface for Menu behavior and animation.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module @mks2508/mks-ui/react/ui/Popover/Popover.styles
8
8
  */
9
- import type { StyleSlots } from '@/core/types';
9
+ import type { StyleSlots } from '../../../core/types';
10
10
  import type { PopoverSlot } from './Popover.types';
11
11
  /**
12
12
  * Default Tailwind classes for each Popover visual region.
@@ -9,7 +9,7 @@
9
9
  import type * as React from 'react';
10
10
  import type { Popover as PopoverPrimitive } from '@base-ui/react/popover';
11
11
  import type { HTMLMotionProps } from 'motion/react';
12
- import type { SlotOverrides, IBaseConfig } from '@/core/types';
12
+ import type { SlotOverrides, IBaseConfig } from '../../../core/types';
13
13
  /**
14
14
  * Visual regions available for class-name overrides via the `slots` prop.
15
15
  *
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module @mks2508/mks-ui/react/ui/Progress/Progress.styles
5
5
  */
6
- import type { StyleSlots } from '@/core/types';
6
+ import type { StyleSlots } from '../../../core/types';
7
7
  import type { ProgressSlot } from './Progress.types';
8
8
  /**
9
9
  * Default style slots for the Progress component.
@@ -4,8 +4,8 @@
4
4
  * @module @mks2508/mks-ui/react/ui/Progress/Progress.types
5
5
  */
6
6
  import type { Progress as ProgressPrimitives } from '@base-ui/react/progress';
7
- import type { IBaseConfig, SlotOverrides } from '@/core/types';
8
- import type { ICountingNumberProps } from '@/react-ui/primitives/CountingNumber';
7
+ import type { IBaseConfig, SlotOverrides } from '../../../core/types';
8
+ import type { ICountingNumberProps } from '../../../react-ui/primitives/CountingNumber';
9
9
  /**
10
10
  * Available style slot names for the Progress component.
11
11
  * Each slot maps to a visual region that can be customized via the `slots` prop.
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  /** Visual regions for the Select component family. */
3
3
  type SelectSlot = 'root' | 'trigger' | 'content' | 'item' | 'label' | 'separator' | 'group' | 'value' | 'scrollButton';
4
4
  declare const selectStyles: StyleSlots<SelectSlot>;
@@ -1,5 +1,5 @@
1
1
  import type { Select as SelectPrimitive } from '@base-ui/react/select';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { SelectSlot } from './Select.styles';
4
4
  /** Props for the Select root. */
5
5
  type ISelectProps = SelectPrimitive.Root.Props<any>;
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  type SeparatorSlot = 'root';
3
3
  declare const separatorStyles: StyleSlots<SeparatorSlot>;
4
4
  export { separatorStyles };
@@ -1,5 +1,5 @@
1
1
  import type { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
2
- import type { SlotOverrides } from '@/core/types';
2
+ import type { SlotOverrides } from '../../../core/types';
3
3
  import type { SeparatorSlot } from './Separator.styles';
4
4
  /** Props for the Separator component. */
5
5
  interface ISeparatorProps extends SeparatorPrimitive.Props {
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module @mks2508/mks-ui/react/ui/Switch/Switch.styles
5
5
  */
6
- import type { StyleSlots } from '@/core/types';
6
+ import type { StyleSlots } from '../../../core/types';
7
7
  import type { SwitchSlot } from './Switch.types';
8
8
  /**
9
9
  * Default style slots for the Switch component.
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { Switch as SwitchPrimitives } from '@base-ui/react/switch';
7
7
  import type { HTMLMotionProps, LegacyAnimationControls, TargetAndTransition, VariantLabels } from 'motion/react';
8
- import type { IBaseConfig, SlotOverrides } from '@/core/types';
8
+ import type { IBaseConfig, SlotOverrides } from '../../../core/types';
9
9
  /**
10
10
  * Available style slot names for the Switch component.
11
11
  * Each slot maps to a visual region that can be customized via the `slots` prop.
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * @module @mks2508/mks-ui/react/ui/Tabs/Tabs.styles
12
12
  */
13
- import type { StyleSlots } from '@/core/types';
13
+ import type { StyleSlots } from '../../../core/types';
14
14
  /**
15
15
  * Union of all visual regions (slots) in the Tabs component tree.
16
16
  */
@@ -10,9 +10,9 @@ import type * as React from 'react';
10
10
  import type { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
11
11
  import type { HTMLMotionProps, Transition } from 'motion/react';
12
12
  import type { VariantProps } from 'class-variance-authority';
13
- import type { IBaseConfig, SlotOverrides } from '@/core/types';
14
- import type { IHighlightProps, IHighlightItemProps } from '@/react-ui/primitives/Highlight';
15
- import type { IAutoHeightProps } from '@/react-ui/primitives/AutoHeight';
13
+ import type { IBaseConfig, SlotOverrides } from '../../../core/types';
14
+ import type { IHighlightProps, IHighlightItemProps } from '../../../react-ui/primitives/Highlight';
15
+ import type { IAutoHeightProps } from '../../../react-ui/primitives/AutoHeight';
16
16
  import type { TabsSlot, tabsListVariants, tabsTabVariants } from './Tabs.styles';
17
17
  /**
18
18
  * Configuration interface for Tabs behavior and animation.
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- import type { StyleSlots } from '@/core/types';
2
+ import type { StyleSlots } from '../../../core/types';
3
3
  /**
4
4
  * Style slots for TextFlow component
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { StyleSlots } from '@/core/types';
1
+ import type { StyleSlots } from '../../../core/types';
2
2
  type TextareaSlot = 'root';
3
3
  declare const textareaStyles: StyleSlots<TextareaSlot>;
4
4
  export { textareaStyles };
@@ -1,4 +1,4 @@
1
- import type { SlotOverrides } from '@/core/types';
1
+ import type { SlotOverrides } from '../../../core/types';
2
2
  import type { TextareaSlot } from './Textarea.styles';
3
3
  /** Props for the Textarea component. */
4
4
  interface ITextareaProps extends React.ComponentProps<'textarea'> {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module @mks2508/mks-ui/react/ui/Tooltip/Tooltip.styles
8
8
  */
9
- import type { StyleSlots } from '@/core/types';
9
+ import type { StyleSlots } from '../../../core/types';
10
10
  import type { TooltipSlot } from './Tooltip.types';
11
11
  /**
12
12
  * Default Tailwind classes for each Tooltip visual region.
@@ -9,7 +9,7 @@
9
9
  import type * as React from 'react';
10
10
  import type { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
11
11
  import type { HTMLMotionProps, MotionValue, SpringOptions } from 'motion/react';
12
- import type { SlotOverrides, IBaseConfig } from '@/core/types';
12
+ import type { SlotOverrides, IBaseConfig } from '../../../core/types';
13
13
  /**
14
14
  * Visual regions available for class-name overrides via the `slots` prop.
15
15
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mks2508/mks-ui",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "UI component library - Shadcn/Animate UI based with DevEnv components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,6 +31,16 @@
31
31
  "types": "./dist/react-ui/blocks/Terminal/index.d.ts",
32
32
  "import": "./dist/react-ui/blocks/Terminal/index.js",
33
33
  "default": "./dist/react-ui/blocks/Terminal/index.js"
34
+ },
35
+ "./react/blocks/Terminal/chrome": {
36
+ "types": "./dist/react-ui/blocks/Terminal/chrome.d.ts",
37
+ "import": "./dist/react-ui/blocks/Terminal/chrome.js",
38
+ "default": "./dist/react-ui/blocks/Terminal/chrome.js"
39
+ },
40
+ "./react/blocks/Terminal/display": {
41
+ "types": "./dist/react-ui/blocks/Terminal/display.d.ts",
42
+ "import": "./dist/react-ui/blocks/Terminal/display.js",
43
+ "default": "./dist/react-ui/blocks/Terminal/display.js"
34
44
  }
35
45
  },
36
46
  "files": [
@@ -46,28 +56,28 @@
46
56
  "format": "prettier --write ."
47
57
  },
48
58
  "dependencies": {
49
- "@base-ui/react": "^1.1.0",
59
+ "@base-ui/react": "^1.3.0",
50
60
  "@fontsource-variable/geist-mono": "^5.2.7",
51
- "@hugeicons/core-free-icons": "^3.1.1",
52
- "@hugeicons/react": "^1.1.5",
53
- "@tailwindcss/vite": "^4.1.18",
61
+ "@hugeicons/core-free-icons": "^4.0.0",
62
+ "@hugeicons/react": "^1.1.6",
63
+ "@tailwindcss/vite": "^4.2.2",
54
64
  "class-variance-authority": "^0.7.1",
55
65
  "clsx": "^2.1.1",
56
- "motion": "^12.34.0",
57
- "shadcn": "^3.8.4",
58
- "tailwind-merge": "^3.4.0",
59
- "tailwindcss": "^4.1.17",
66
+ "motion": "^12.38.0",
67
+ "shadcn": "^4.1.0",
68
+ "tailwind-merge": "^3.5.0",
69
+ "tailwindcss": "^4.2.2",
60
70
  "tw-animate-css": "^1.4.0"
61
71
  },
62
72
  "peerDependencies": {
63
- "react": "^19.2.0",
64
- "react-dom": "^19.2.0",
73
+ "react": "^19.2.4",
74
+ "react-dom": "^19.2.4",
65
75
  "@xterm/xterm": "^5.5.0",
66
76
  "@xterm/addon-fit": "^0.9.0",
67
77
  "@xterm/addon-web-links": "^0.10.0",
68
78
  "@xterm/addon-search": "^0.14.0",
69
79
  "@xterm/addon-unicode11": "^0.7.0",
70
- "restty": "^0.1.24",
80
+ "restty": "^0.1.34",
71
81
  "shiki": "^3.22.0",
72
82
  "@tanstack/react-virtual": "^3.13.0"
73
83
  },
@@ -99,32 +109,29 @@
99
109
  },
100
110
  "devDependencies": {
101
111
  "@eslint/js": "^10.0.1",
102
- "@types/node": "^25.2.3",
103
- "@types/react": "^19.2.7",
112
+ "@types/node": "^25.5.0",
113
+ "@types/react": "^19.2.14",
104
114
  "@types/react-dom": "^19.2.3",
105
- "@vitejs/plugin-react": "^5.1.1",
106
- "@tanstack/react-virtual": "^3.13.0",
107
- "@xterm/addon-fit": "^0.9.0",
115
+ "@vitejs/plugin-react": "^6.0.1",
116
+ "@tanstack/react-virtual": "^3.13.23",
117
+ "@xterm/addon-fit": "^0.11.0",
108
118
  "@xterm/addon-ligatures": "^0.10.0",
109
- "@xterm/addon-search": "^0.14.0",
110
- "@xterm/addon-unicode11": "^0.7.0",
111
- "@xterm/addon-web-links": "^0.10.0",
112
- "@xterm/xterm": "^5.5.0",
113
- "restty": "^0.1.24",
114
- "shiki": "^3.22.0",
115
- "eslint": "^10.0.0",
119
+ "@xterm/addon-search": "^0.16.0",
120
+ "@xterm/addon-unicode11": "^0.9.0",
121
+ "@xterm/addon-web-links": "^0.12.0",
122
+ "@xterm/xterm": "^6.0.0",
123
+ "restty": "^0.1.34",
124
+ "shiki": "^4.0.2",
125
+ "eslint": "^10.1.0",
116
126
  "eslint-plugin-react-hooks": "^7.0.1",
117
- "eslint-plugin-react-refresh": "^0.5.0",
118
- "glob": "^13.0.2",
119
- "globals": "^17.3.0",
120
- "rolldown": "^1.0.0-rc.4",
127
+ "eslint-plugin-react-refresh": "^0.5.2",
128
+ "glob": "^13.0.6",
129
+ "globals": "^17.4.0",
130
+ "rolldown": "1.0.0-rc.4",
121
131
  "tsc-alias": "^1.8.16",
122
- "typescript": "~5.9.3",
123
- "typescript-eslint": "^8.48.0",
124
- "vite": "^8.0.0-beta.13"
125
- },
126
- "overrides": {
127
- "vite": "^8.0.0-beta.13"
132
+ "typescript": "~6.0.2",
133
+ "typescript-eslint": "^8.57.2",
134
+ "vite": "^8.0.2"
128
135
  },
129
136
  "publishConfig": {
130
137
  "access": "public"
package/src/css.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare module '*.module.css' {
2
+ const classes: Record<string, string>;
3
+ export default classes;
4
+ }
5
+
6
+ declare module '@xterm/xterm/css/xterm.css';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * TerminalDisplay style definitions.
3
+ *
4
+ * @module components/devenv/terminal/TerminalDisplay.styles
5
+ */
6
+
7
+ import { cva, type VariantProps } from 'class-variance-authority';
8
+ import type { StyleSlots } from '@/core/types';
9
+ import type { TerminalDisplaySlot } from './TerminalDisplay.types';
10
+
11
+ /**
12
+ * Default style slots for TerminalDisplay regions.
13
+ */
14
+ export const terminalDisplayStyles: StyleSlots<TerminalDisplaySlot> = {
15
+ root: 'relative overflow-hidden',
16
+ chrome: '',
17
+ terminal: 'w-full h-full pointer-events-none',
18
+ emptyState: 'flex items-center justify-center text-sm text-muted-foreground/50 font-mono',
19
+ };
20
+
21
+ /**
22
+ * CVA variants for the display root.
23
+ */
24
+ export const terminalDisplayVariants = cva(terminalDisplayStyles.root, {
25
+ variants: {
26
+ variant: {
27
+ default: '',
28
+ compact: '',
29
+ error: '',
30
+ },
31
+ },
32
+ defaultVariants: {
33
+ variant: 'default',
34
+ },
35
+ });
36
+
37
+ /** Extracted variant props type */
38
+ export type TerminalDisplayVariantProps = VariantProps<typeof terminalDisplayVariants>;