@moduix/solid 1.1.0 → 2.0.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 (90) hide show
  1. package/dist/components/accordion/Accordion.js +2 -2
  2. package/dist/components/accordion/Accordion.jsx +1 -1
  3. package/dist/components/alert/Alert.js +14 -14
  4. package/dist/components/alert/Alert.jsx +6 -6
  5. package/dist/components/angle-slider/AngleSlider.js +13 -1
  6. package/dist/components/angle-slider/AngleSlider.jsx +13 -2
  7. package/dist/components/angle-slider/AngleSlider_module.css +65 -90
  8. package/dist/components/avatar/Avatar.js +3 -3
  9. package/dist/components/avatar/Avatar.jsx +1 -1
  10. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -4
  11. package/dist/components/breadcrumbs/Breadcrumbs.js +34 -29
  12. package/dist/components/breadcrumbs/Breadcrumbs.jsx +12 -11
  13. package/dist/components/carousel/Carousel_module.css +2 -2
  14. package/dist/components/command-palette/CommandPalette.js +1 -1
  15. package/dist/components/command-palette/CommandPalette.jsx +1 -1
  16. package/dist/components/drawer/Drawer.js +3 -3
  17. package/dist/components/drawer/Drawer.jsx +1 -1
  18. package/dist/components/highlight/Highlight_module.css +0 -1
  19. package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
  20. package/dist/components/json-tree-view/JsonTreeView_module.css +9 -1
  21. package/dist/components/marquee/Marquee_module.css +12 -14
  22. package/dist/components/menu/Menu.js +11 -20
  23. package/dist/components/menu/Menu.jsx +6 -9
  24. package/dist/components/menu/Menu_module.css +1 -1
  25. package/dist/components/native-select/NativeSelect.d.ts +0 -1
  26. package/dist/components/native-select/NativeSelect.js +2 -7
  27. package/dist/components/native-select/NativeSelect.jsx +2 -4
  28. package/dist/components/native-select/NativeSelect_module.css +7 -7
  29. package/dist/components/navigation-menu/NavigationMenu.d.ts +1 -0
  30. package/dist/components/navigation-menu/NavigationMenu.js +2 -1
  31. package/dist/components/navigation-menu/NavigationMenu.jsx +2 -1
  32. package/dist/components/navigation-menu/NavigationMenu_module.css +2 -2
  33. package/dist/components/number-input/NumberInput_module.css +4 -4
  34. package/dist/components/pagination/Pagination.js +4 -4
  35. package/dist/components/pagination/Pagination.jsx +4 -4
  36. package/dist/components/pagination/Pagination_module.css +1 -1
  37. package/dist/components/password-input/PasswordInput.js +4 -13
  38. package/dist/components/password-input/PasswordInput.jsx +4 -12
  39. package/dist/components/password-input/PasswordInput_module.css +11 -3
  40. package/dist/components/progress-linear/ProgressLinear_module.css +0 -1
  41. package/dist/components/radio-group/RadioGroup.d.ts +2 -2
  42. package/dist/components/radio-group/RadioGroup_module.css +1 -4
  43. package/dist/components/rating-group/RatingGroup.js +10 -10
  44. package/dist/components/rating-group/RatingGroup.jsx +3 -3
  45. package/dist/components/rating-group/RatingGroup_module.css +2 -14
  46. package/dist/components/scroll-area/ScrollArea.d.ts +1 -1
  47. package/dist/components/segment-group/SegmentGroup.d.ts +1 -1
  48. package/dist/components/segment-group/SegmentGroup.js +1 -0
  49. package/dist/components/segment-group/SegmentGroup.jsx +1 -0
  50. package/dist/components/select/Select.module.js +1 -1
  51. package/dist/components/select/Select.module.jsx +1 -1
  52. package/dist/components/select/Select_module.css +4 -4
  53. package/dist/components/separator/Separator_module.css +6 -6
  54. package/dist/components/sidebar/Sidebar.js +46 -52
  55. package/dist/components/sidebar/Sidebar.jsx +21 -23
  56. package/dist/components/sidebar/Sidebar_module.css +1 -1
  57. package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
  58. package/dist/components/slider/Slider.js +3 -3
  59. package/dist/components/slider/Slider.jsx +1 -1
  60. package/dist/components/slider/Slider_module.css +6 -4
  61. package/dist/components/split-button/SplitButton.js +7 -7
  62. package/dist/components/split-button/SplitButton.jsx +5 -6
  63. package/dist/components/split-button/SplitButton_module.css +4 -1
  64. package/dist/components/steps/Steps_module.css +1 -1
  65. package/dist/components/swap/Swap.js +6 -6
  66. package/dist/components/swap/Swap.jsx +2 -2
  67. package/dist/components/swap/Swap_module.css +0 -3
  68. package/dist/components/switch/Switch.js +6 -6
  69. package/dist/components/switch/Switch.jsx +2 -2
  70. package/dist/components/switch/Switch_module.css +2 -2
  71. package/dist/components/table/Table_module.css +4 -2
  72. package/dist/components/tabs/Tabs.js +6 -6
  73. package/dist/components/tabs/Tabs.jsx +2 -2
  74. package/dist/components/tabs/Tabs_module.css +2 -2
  75. package/dist/components/tags-input/TagsInput_module.css +5 -4
  76. package/dist/components/toast/Toast.module.js +2 -2
  77. package/dist/components/toast/Toast.module.jsx +2 -2
  78. package/dist/components/toast/Toast_module.css +4 -6
  79. package/dist/components/toc/Toc.d.ts +2 -2
  80. package/dist/components/toc/Toc.js +4 -5
  81. package/dist/components/toc/Toc.jsx +4 -5
  82. package/dist/components/toc/Toc_module.css +2 -1
  83. package/dist/components/toggle/Toggle_module.css +3 -0
  84. package/dist/components/tooltip/Tooltip_module.css +1 -3
  85. package/dist/components/tour/Tour_module.css +2 -3
  86. package/dist/components/tree-view/TreeView_module.css +7 -5
  87. package/dist/components/typeset/Typeset_module.css +6 -4
  88. package/dist/styles/animations.css +10 -0
  89. package/dist/styles/style.css +2 -0
  90. package/package.json +9 -10
@@ -1,8 +1,4 @@
1
1
  @layer moduix.components {
2
- .toaster-m5bxJd {
3
- z-index: var(--moduix-toast-z-index, var(--moduix-z-toast));
4
- }
5
-
6
2
  .root-p_jC2T {
7
3
  --_toast-trigger-bg-default: transparent;
8
4
  --_toast-trigger-bg-hover-default: var(--moduix-color-accent);
@@ -123,8 +119,10 @@
123
119
  display: inline-flex;
124
120
  }
125
121
 
126
- .actionTrigger-ftU5e1:hover {
127
- background: var(--moduix-toast-action-bg-hover, var(--_toast-trigger-bg-hover-default));
122
+ @media (hover: hover) {
123
+ .actionTrigger-ftU5e1:hover {
124
+ background: var(--moduix-toast-action-bg-hover, var(--_toast-trigger-bg-hover-default));
125
+ }
128
126
  }
129
127
 
130
128
  .actionTrigger-ftU5e1:focus-visible {
@@ -1,7 +1,7 @@
1
1
  import { Toc as TocPrimitive, type UseTocProps } from '@ark-ui/solid/toc';
2
2
  import type { ComponentProps, JSX } from 'solid-js';
3
- declare const useToc: (props: UseTocProps) => import("@ark-ui/solid").UseTocReturn;
4
- declare const useTocContext: () => import("@ark-ui/solid").UseTocContext;
3
+ declare const useToc: (props: UseTocProps) => import("@ark-ui/solid/toc").UseTocReturn;
4
+ declare const useTocContext: () => import("@ark-ui/solid/toc").UseTocContext;
5
5
  declare function TocRoot(props: ComponentProps<typeof TocPrimitive.Root>): JSX.Element;
6
6
  declare function TocRootProvider(props: ComponentProps<typeof TocPrimitive.RootProvider>): JSX.Element;
7
7
  declare function TocContent(props: ComponentProps<typeof TocPrimitive.Content>): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, memo, mergeProps, spread, template } from "solid-js/web";
2
2
  import { Toc, useToc, useTocContext } from "@ark-ui/solid/toc";
3
3
  import { clsx } from "clsx";
4
- import { splitProps } from "solid-js";
4
+ import { mergeProps as external_solid_js_mergeProps, splitProps } from "solid-js";
5
5
  import Toc_module from "./Toc.module.js";
6
6
  var _tmpl$ = /*#__PURE__*/ template("<svg aria-hidden=true><line y2=100%>"), _tmpl$2 = /*#__PURE__*/ template("<svg><path fill=none></svg>", false, true, false);
7
7
  const railBaseOffset = 0;
@@ -9,10 +9,9 @@ const railStep = 12;
9
9
  const railBridge = 6;
10
10
  const maxRailLevel = 2;
11
11
  const getRailOffset = (depth)=>railBaseOffset + Math.min(Math.max(depth - 2, 0), maxRailLevel) * railStep;
12
- const Toc_useToc = (props)=>useToc({
13
- autoScroll: false,
14
- ...props
15
- });
12
+ const Toc_useToc = (props)=>useToc(external_solid_js_mergeProps({
13
+ autoScroll: false
14
+ }, props));
16
15
  const Toc_useTocContext = useTocContext;
17
16
  function TocRoot(props) {
18
17
  const [local, others] = splitProps(props, [
@@ -1,16 +1,15 @@
1
1
  import { Toc, useToc, useTocContext } from "@ark-ui/solid/toc";
2
2
  import { clsx } from "clsx";
3
- import { splitProps } from "solid-js";
3
+ import { mergeProps, splitProps } from "solid-js";
4
4
  import Toc_module from "./Toc.module.jsx";
5
5
  const railBaseOffset = 0;
6
6
  const railStep = 12;
7
7
  const railBridge = 6;
8
8
  const maxRailLevel = 2;
9
9
  const getRailOffset = (depth)=>railBaseOffset + Math.min(Math.max(depth - 2, 0), maxRailLevel) * railStep;
10
- const Toc_useToc = (props)=>useToc({
11
- autoScroll: false,
12
- ...props
13
- });
10
+ const Toc_useToc = (props)=>useToc(mergeProps({
11
+ autoScroll: false
12
+ }, props));
14
13
  const Toc_useTocContext = useTocContext;
15
14
  function TocRoot(props) {
16
15
  const [local, others] = splitProps(props, [
@@ -35,6 +35,7 @@
35
35
  var(--moduix-table-of-contents-nav-border-color, var(--moduix-color-border));
36
36
  border-radius: var(--moduix-table-of-contents-nav-radius, var(--moduix-radius-lg));
37
37
  background-color: var(--moduix-table-of-contents-nav-bg, var(--moduix-color-card));
38
+ color: var(--moduix-table-of-contents-nav-color, var(--moduix-color-card-foreground));
38
39
  align-self: start;
39
40
  position: sticky;
40
41
  overflow: auto;
@@ -176,7 +177,7 @@
176
177
  scroll-behavior: auto;
177
178
  }
178
179
 
179
- .indicator-Zeit8l {
180
+ .link-L4LQA0, .indicator-Zeit8l {
180
181
  transition: none;
181
182
  }
182
183
  }
@@ -144,18 +144,21 @@
144
144
  .root-FOmqpM[data-size="icon-sm"] {
145
145
  width: var(--moduix-toggle-size-icon-sm, var(--moduix-size-sm));
146
146
  min-width: var(--moduix-toggle-size-icon-sm, var(--moduix-size-sm));
147
+ min-height: var(--moduix-toggle-size-icon-sm, var(--moduix-size-sm));
147
148
  height: var(--moduix-toggle-size-icon-sm, var(--moduix-size-sm));
148
149
  }
149
150
 
150
151
  .root-FOmqpM[data-size="icon-md"] {
151
152
  width: var(--moduix-toggle-size-icon-md, var(--moduix-size-md));
152
153
  min-width: var(--moduix-toggle-size-icon-md, var(--moduix-size-md));
154
+ min-height: var(--moduix-toggle-size-icon-md, var(--moduix-size-md));
153
155
  height: var(--moduix-toggle-size-icon-md, var(--moduix-size-md));
154
156
  }
155
157
 
156
158
  .root-FOmqpM[data-size="icon-lg"] {
157
159
  width: var(--moduix-toggle-size-icon-lg, var(--moduix-size-lg));
158
160
  min-width: var(--moduix-toggle-size-icon-lg, var(--moduix-size-lg));
161
+ min-height: var(--moduix-toggle-size-icon-lg, var(--moduix-size-lg));
159
162
  height: var(--moduix-toggle-size-icon-lg, var(--moduix-size-lg));
160
163
  }
161
164
 
@@ -60,12 +60,10 @@
60
60
  .positioner-oQOZIG {
61
61
  z-index: var(--z-index, var(--moduix-z-popup));
62
62
  max-width: var(--available-width);
63
- max-height: var(--available-height);
63
+ outline: 0;
64
64
  }
65
65
 
66
66
  .content-Ca8mTU {
67
- --arrow-background: var(--moduix-tooltip-arrow-background, var(--moduix-tooltip-bg, var(--moduix-color-popover)));
68
- --arrow-size: var(--moduix-tooltip-arrow-size, var(--moduix-spacing-2-5));
69
67
  box-sizing: border-box;
70
68
  z-index: var(--moduix-tooltip-z-index, var(--moduix-z-popup));
71
69
  max-width: min(var(--moduix-tooltip-max-width, 20rem), var(--available-width));
@@ -18,7 +18,8 @@
18
18
  }
19
19
 
20
20
  .spotlight-gPJyi_ {
21
- z-index: calc(var(--moduix-tour-z-index, var(--moduix-z-modal)) + var(--tour-layer, 0));
21
+ z-index: calc(var(--moduix-tour-z-index, var(--moduix-z-modal)) + var(--tour-layer, 0) +
22
+ var(--layer-index, 0));
22
23
  box-shadow: var(--moduix-tour-spotlight-shadow, 0 0 0 var(--moduix-tour-spotlight-ring-width, 2px) var(--moduix-color-ring));
23
24
  }
24
25
 
@@ -110,8 +111,6 @@
110
111
  }
111
112
 
112
113
  .content-ZY9BS9 {
113
- --arrow-background: var(--moduix-tour-arrow-background, var(--moduix-tour-bg, var(--moduix-color-popover)));
114
- --arrow-size: var(--moduix-tour-arrow-size, var(--moduix-spacing-2-5));
115
114
  box-sizing: border-box;
116
115
  z-index: calc(var(--moduix-tour-z-index, var(--moduix-z-modal)) + var(--tour-layer, 0) +
117
116
  var(--layer-index, 0));
@@ -88,12 +88,14 @@
88
88
  inset-inline-end: 0;
89
89
  }
90
90
 
91
- :is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover {
92
- color: var(--moduix-tree-view-item-hover-color, var(--moduix-color-accent-foreground));
93
- }
91
+ @media (hover: hover) {
92
+ :is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover {
93
+ color: var(--moduix-tree-view-item-hover-color, var(--moduix-color-accent-foreground));
94
+ }
94
95
 
95
- :is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover:before {
96
- background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
96
+ :is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover:before {
97
+ background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
98
+ }
97
99
  }
98
100
 
99
101
  :is(:is(.branchControl-ositpp, .item-D7JZg4):focus-visible, :is(.branchControl-ositpp, .item-D7JZg4)[data-focus]):before {
@@ -104,8 +104,9 @@
104
104
  }
105
105
 
106
106
  .root-DaHOOi :not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)):where(a:focus-visible) {
107
- outline: 2px solid var(--moduix-color-ring, currentColor);
108
- outline-offset: 2px;
107
+ outline: var(--moduix-focus-ring-width, var(--moduix-border-width-md)) solid
108
+ var(--moduix-color-ring, currentColor);
109
+ outline-offset: var(--moduix-focus-ring-offset, var(--moduix-spacing-0-5));
109
110
  border-radius: .125em;
110
111
  }
111
112
 
@@ -118,9 +119,10 @@
118
119
  }
119
120
 
120
121
  .root-DaHOOi :not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)):where(mark) {
122
+ background-color: color-mix(in oklab,
123
+ var(--moduix-color-warning, currentColor) 40%,
124
+ transparent);
121
125
  color: inherit;
122
- background-color: #f4ce2366;
123
- background-color: lab(84.3279% 2.77337 79.232 / .4);
124
126
  border-radius: .2em;
125
127
  padding: .05em .15em;
126
128
  }
@@ -81,6 +81,16 @@
81
81
  }
82
82
  }
83
83
 
84
+ @keyframes moduix-progress-circular-indeterminate {
85
+ from {
86
+ transform: rotate(-90deg);
87
+ }
88
+
89
+ to {
90
+ transform: rotate(270deg);
91
+ }
92
+ }
93
+
84
94
  @keyframes moduix-progress-linear-indeterminate {
85
95
  from {
86
96
  transform: translateX(-100%);
@@ -139,6 +139,8 @@
139
139
  var(--marquee-loop-count);
140
140
  --animate-moduix-progress-linear-indeterminate: moduix-progress-linear-indeterminate 1.5s
141
141
  ease-in-out infinite;
142
+ --animate-moduix-progress-circular-indeterminate: moduix-progress-circular-indeterminate 1.4s
143
+ linear infinite;
142
144
  --animate-moduix-progress-linear-indeterminate-vertical: moduix-progress-linear-indeterminate-vertical
143
145
  1.5s ease-in-out infinite;
144
146
  --animate-moduix-collapsible-open: moduix-collapsible-content-open
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduix/solid",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Solid implementation of the moduix component system, built on Ark UI primitives.",
5
5
  "keywords": [
6
6
  "accessible",
@@ -593,27 +593,26 @@
593
593
  },
594
594
  "dependencies": {
595
595
  "@unpic/core": "^1.0.3",
596
- "@zag-js/hotkeys": "1.43.3",
597
596
  "@zag-js/solid": "1.43.3",
598
597
  "clsx": "^2.1.1",
599
- "lucide-solid": "^1.41.0"
598
+ "lucide-solid": "^1.46.0"
600
599
  },
601
600
  "devDependencies": {
602
- "@ark-ui/solid": "^5.39.1",
603
- "@internationalized/date": "3.12.3",
604
- "@rsbuild/core": "^2.2.3",
601
+ "@ark-ui/solid": "^5.39.2",
602
+ "@internationalized/date": "^3.12.4",
603
+ "@rsbuild/core": "^2.2.6",
605
604
  "@rsbuild/plugin-babel": "^2.1.0",
606
605
  "@rsbuild/plugin-solid": "^1.2.2",
607
606
  "@rslib/core": "^1.0.0",
608
607
  "@rstest/adapter-rslib": "^0.11.12",
609
608
  "@rstest/core": "^0.11.12",
610
609
  "@solidjs/testing-library": "^0.8.10",
611
- "@tanstack/charts": "^0.16.0",
612
- "@testing-library/dom": "^10.4.1",
610
+ "@tanstack/charts": "^0.16.2",
611
+ "@testing-library/dom": "^10.4.2",
613
612
  "@testing-library/jest-dom": "^7.0.1",
614
613
  "@testing-library/user-event": "^14.6.7",
615
- "@types/node": "^26.4.1",
616
- "happy-dom": "^20.14.0",
614
+ "@types/node": "^26.5.1",
615
+ "happy-dom": "^20.14.5",
617
616
  "solid-js": "^1.9.15",
618
617
  "typescript": "~7.0.2"
619
618
  },