@toolr/ui-design 0.1.2 → 0.1.4
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.
- package/README.md +0 -7
- package/components/content/info-panel-primitives.tsx +3 -3
- package/components/lib/ai-tools.tsx +1 -1
- package/components/lib/form-colors.ts +3 -0
- package/components/lib/theme-engine.ts +10 -0
- package/components/sections/captured-issues/captured-issues-panel.tsx +1 -1
- package/components/sections/golden-snapshots/file-diff-viewer.tsx +2 -2
- package/components/sections/golden-snapshots/snapshot-manager.tsx +3 -3
- package/components/sections/golden-snapshots/status-overview.tsx +4 -4
- package/components/sections/golden-snapshots/version-manager.tsx +3 -3
- package/components/sections/report-bug/screenshot-uploader.tsx +2 -2
- package/components/sections/snapshot-browser/snapshot-tree.tsx +1 -1
- package/components/sections/snippets-editor/snippets-editor.tsx +5 -5
- package/components/ui/action-dialog.tsx +1 -1
- package/components/ui/badge.tsx +8 -6
- package/components/ui/breadcrumb.tsx +1 -1
- package/components/ui/confirm-badge.tsx +4 -2
- package/components/ui/file-structure-section.tsx +139 -74
- package/components/ui/file-tree.tsx +2 -2
- package/components/ui/files-panel.tsx +5 -5
- package/components/ui/filter-dropdown.tsx +3 -3
- package/components/ui/frontmatter-form-header.tsx +2 -2
- package/components/ui/icon-button.tsx +6 -2
- package/components/ui/input.tsx +1 -1
- package/components/ui/label.tsx +8 -5
- package/components/ui/modal.tsx +1 -1
- package/components/ui/nav-card.tsx +1 -1
- package/components/ui/navigation-bar.tsx +1 -1
- package/components/ui/number-input.tsx +1 -1
- package/components/ui/registry-card.tsx +7 -7
- package/components/ui/registry-detail.tsx +5 -2
- package/components/ui/resizable-textarea.tsx +2 -2
- package/components/ui/segmented-toggle.tsx +36 -18
- package/components/ui/select.tsx +3 -3
- package/components/ui/selection-grid.tsx +7 -19
- package/components/ui/settings-card.tsx +27 -0
- package/components/ui/settings-info-box.tsx +80 -0
- package/components/ui/settings-section-title.tsx +24 -0
- package/components/ui/snapshot-card.tsx +2 -2
- package/components/ui/snippets-panel.tsx +9 -9
- package/components/ui/sort-dropdown.tsx +1 -1
- package/components/ui/tab-bar.tsx +1 -1
- package/components/ui/tooltip.tsx +1 -1
- package/dist/content.js +3 -3
- package/dist/index.d.ts +93 -46
- package/dist/index.js +1452 -1236
- package/dist/tokens/primitives.css +10 -0
- package/dist/tokens/semantic.css +3 -0
- package/index.ts +4 -1
- package/package.json +1 -7
- package/tokens/primitives.css +10 -0
- package/tokens/semantic.css +3 -0
- package/dist/preset.d.ts +0 -24
- package/dist/preset.js +0 -17
- package/tailwind-preset.ts +0 -22
|
@@ -21,6 +21,16 @@
|
|
|
21
21
|
--color-neutral-100: #f0f0f0;
|
|
22
22
|
--color-neutral-50: #fafafa;
|
|
23
23
|
|
|
24
|
+
/* Typography — minimum font size */
|
|
25
|
+
--font-size-xss: 11px;
|
|
26
|
+
|
|
27
|
+
/* Breakpoints */
|
|
28
|
+
--breakpoint-3xl: 100rem;
|
|
29
|
+
--breakpoint-4xl: 156.25rem;
|
|
30
|
+
|
|
31
|
+
/* Font family */
|
|
32
|
+
--font-sans: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
33
|
+
|
|
24
34
|
/* Disable Tailwind default gray to prevent accidental usage */
|
|
25
35
|
--color-gray-*: initial;
|
|
26
36
|
}
|
package/dist/tokens/semantic.css
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
--surface-overlay: var(--color-neutral-700);
|
|
21
21
|
--surface-hover: var(--color-neutral-750);
|
|
22
22
|
|
|
23
|
+
/* Dialog backdrop: modal/dialog overlays */
|
|
24
|
+
--dialog-backdrop: rgba(0, 0, 0, 0.85);
|
|
25
|
+
|
|
23
26
|
/* Popover: floating panels, dropdown menus */
|
|
24
27
|
--popover: rgba(0, 0, 0, 0.8);
|
|
25
28
|
--popover-foreground: var(--color-neutral-300);
|
package/index.ts
CHANGED
|
@@ -32,7 +32,6 @@ export { FormActions, type FormActionsProps } from './components/ui/form-actions
|
|
|
32
32
|
export { ConfirmModal, AlertModal, type ConfirmModalProps, type AlertModalProps, type ModalKind, type ModalSize } from './components/ui/modal.tsx'
|
|
33
33
|
export { ActionDialog, type ActionDialogProps } from './components/ui/action-dialog.tsx'
|
|
34
34
|
export { ExecutionDetailsPanel, type ExecutionDetailsPanelProps, type ExecutionDetailRow } from './components/ui/execution-details-panel.tsx'
|
|
35
|
-
export { SettingRow, type SettingRowProps } from './components/ui/setting-row.tsx'
|
|
36
35
|
export { FileTree, collectDirPaths, type FileTreeProps, type FileTreeNode } from './components/ui/file-tree.tsx'
|
|
37
36
|
export { EditorToolbar, type EditorToolbarProps } from './components/ui/editor-toolbar.tsx'
|
|
38
37
|
export { BottomPanelHeader, type BottomPanelHeaderProps, type PanelTab, type StatusBanner } from './components/ui/bottom-panel-header.tsx'
|
|
@@ -123,6 +122,10 @@ export { useDropdownMaxHeight } from './components/hooks/use-dropdown-max-height
|
|
|
123
122
|
export { useNavigationHistory, type UseNavigationHistoryReturn } from './components/hooks/use-navigation-history.ts'
|
|
124
123
|
|
|
125
124
|
// Settings
|
|
125
|
+
export { SettingRow, type SettingRowProps } from './components/ui/setting-row.tsx'
|
|
126
|
+
export { SettingsCard, type SettingsCardProps } from './components/ui/settings-card.tsx'
|
|
127
|
+
export { SettingsInfoBox, type SettingsInfoBoxProps, type SettingsInfoBoxColor } from './components/ui/settings-info-box.tsx'
|
|
128
|
+
export { SettingsSectionTitle, type SettingsSectionTitleProps } from './components/ui/settings-section-title.tsx'
|
|
126
129
|
export {
|
|
127
130
|
SettingsPanel, type SettingsPanelProps,
|
|
128
131
|
SettingsTreeNav, type SettingsTreeNavProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolr/ui-design",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"source": "./tokens/theme.css",
|
|
16
16
|
"default": "./dist/tokens/theme.css"
|
|
17
17
|
},
|
|
18
|
-
"./preset": {
|
|
19
|
-
"source": "./tailwind-preset.ts",
|
|
20
|
-
"import": "./dist/preset.js",
|
|
21
|
-
"types": "./dist/preset.d.ts"
|
|
22
|
-
},
|
|
23
18
|
"./content": {
|
|
24
19
|
"source": "./components/content/info-panel-primitives.tsx",
|
|
25
20
|
"import": "./dist/content.js",
|
|
@@ -38,7 +33,6 @@
|
|
|
38
33
|
"files": [
|
|
39
34
|
"dist",
|
|
40
35
|
"index.ts",
|
|
41
|
-
"tailwind-preset.ts",
|
|
42
36
|
"components",
|
|
43
37
|
"tokens"
|
|
44
38
|
],
|
package/tokens/primitives.css
CHANGED
|
@@ -21,6 +21,16 @@
|
|
|
21
21
|
--color-neutral-100: #f0f0f0;
|
|
22
22
|
--color-neutral-50: #fafafa;
|
|
23
23
|
|
|
24
|
+
/* Typography — minimum font size */
|
|
25
|
+
--font-size-xss: 11px;
|
|
26
|
+
|
|
27
|
+
/* Breakpoints */
|
|
28
|
+
--breakpoint-3xl: 100rem;
|
|
29
|
+
--breakpoint-4xl: 156.25rem;
|
|
30
|
+
|
|
31
|
+
/* Font family */
|
|
32
|
+
--font-sans: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
33
|
+
|
|
24
34
|
/* Disable Tailwind default gray to prevent accidental usage */
|
|
25
35
|
--color-gray-*: initial;
|
|
26
36
|
}
|
package/tokens/semantic.css
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
--surface-overlay: var(--color-neutral-700);
|
|
21
21
|
--surface-hover: var(--color-neutral-750);
|
|
22
22
|
|
|
23
|
+
/* Dialog backdrop: modal/dialog overlays */
|
|
24
|
+
--dialog-backdrop: rgba(0, 0, 0, 0.85);
|
|
25
|
+
|
|
23
26
|
/* Popover: floating panels, dropdown menus */
|
|
24
27
|
--popover: rgba(0, 0, 0, 0.8);
|
|
25
28
|
--popover-foreground: var(--color-neutral-300);
|
package/dist/preset.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Tailwind 4 preset for toolr apps.
|
|
3
|
-
*
|
|
4
|
-
* Consuming apps import the token CSS via:
|
|
5
|
-
* @import "@toolr/ui-design/tokens";
|
|
6
|
-
*
|
|
7
|
-
* This preset provides shared theme extensions (breakpoints, etc.)
|
|
8
|
-
* that all apps should use.
|
|
9
|
-
*/
|
|
10
|
-
declare const toolrPreset: {
|
|
11
|
-
theme: {
|
|
12
|
-
extend: {
|
|
13
|
-
screens: {
|
|
14
|
-
'3xl': string;
|
|
15
|
-
'4xl': string;
|
|
16
|
-
};
|
|
17
|
-
fontFamily: {
|
|
18
|
-
sans: string[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { toolrPreset };
|
package/dist/preset.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// tailwind-preset.ts
|
|
2
|
-
var toolrPreset = {
|
|
3
|
-
theme: {
|
|
4
|
-
extend: {
|
|
5
|
-
screens: {
|
|
6
|
-
"3xl": "100rem",
|
|
7
|
-
"4xl": "156.25rem"
|
|
8
|
-
},
|
|
9
|
-
fontFamily: {
|
|
10
|
-
sans: ["Inter", "system-ui", "Avenir", "Helvetica", "Arial", "sans-serif"]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
toolrPreset
|
|
17
|
-
};
|
package/tailwind-preset.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Tailwind 4 preset for toolr apps.
|
|
3
|
-
*
|
|
4
|
-
* Consuming apps import the token CSS via:
|
|
5
|
-
* @import "@toolr/ui-design/tokens";
|
|
6
|
-
*
|
|
7
|
-
* This preset provides shared theme extensions (breakpoints, etc.)
|
|
8
|
-
* that all apps should use.
|
|
9
|
-
*/
|
|
10
|
-
export const toolrPreset = {
|
|
11
|
-
theme: {
|
|
12
|
-
extend: {
|
|
13
|
-
screens: {
|
|
14
|
-
'3xl': '100rem',
|
|
15
|
-
'4xl': '156.25rem',
|
|
16
|
-
},
|
|
17
|
-
fontFamily: {
|
|
18
|
-
sans: ['Inter', 'system-ui', 'Avenir', 'Helvetica', 'Arial', 'sans-serif'],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
}
|