@widgetic/design-system 0.3.79 → 0.3.81
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 +828 -123
- package/dist/components/CopyableHeader.svelte +13 -11
- package/dist/components/CopyableHeader.svelte.d.ts +34 -38
- package/dist/components/EmptyState.svelte +2 -9
- package/dist/components/EmptyState.svelte.d.ts +30 -35
- package/dist/components/PasswordInput.svelte +1 -5
- package/dist/components/PasswordInput.svelte.d.ts +19 -23
- package/dist/components/ThumbHashImage.svelte.d.ts +20 -24
- package/dist/components/WScrollArea.svelte +3 -3
- package/dist/components/WScrollArea.svelte.d.ts +25 -36
- package/dist/components/debug-grid/DebugGrid.svelte +1 -1
- package/dist/components/debug-grid/DebugGrid.svelte.d.ts +26 -30
- package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
- package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +26 -31
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/modals/ActionModal.svelte.d.ts +36 -47
- package/dist/components/modals/BaseModal.svelte +1 -1
- package/dist/components/modals/BaseModal.svelte.d.ts +32 -36
- package/dist/components/modals/NewItemDialog.svelte +1 -1
- package/dist/components/modals/NewItemDialog.svelte.d.ts +33 -37
- package/dist/components/modals/Portal.svelte.d.ts +21 -32
- package/dist/components/modals/RenameDialog.svelte +6 -7
- package/dist/components/modals/RenameDialog.svelte.d.ts +33 -37
- package/dist/components/modals/modalStore.js +21 -26
- package/dist/components/navigation/Breadcrumbs.svelte +9 -9
- package/dist/components/navigation/Breadcrumbs.svelte.d.ts +28 -32
- package/dist/components/pdf/PDFViewer.svelte +19 -10
- package/dist/components/pdf/PDFViewer.svelte.d.ts +26 -30
- package/dist/components/search-input/SearchInput.svelte +8 -3
- package/dist/components/search-input/SearchInput.svelte.d.ts +40 -44
- package/dist/components/search-input/index.d.ts +14 -3
- package/dist/components/search-input/index.js +2 -1
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +13 -5
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +14 -4
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +14 -4
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +13 -7
- package/dist/components/shad-editor/editor.css +4 -8
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/code.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +13 -8
- package/dist/components/shad-editor/icons/image.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/link.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/table.svelte +3 -3
- package/dist/components/shad-editor/icons/table.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/text.svelte +1 -1
- package/dist/components/shad-editor/icons/text.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +13 -7
- package/dist/components/shad-editor/onedark.css +0 -3
- package/dist/components/shad-editor/shad-editor.svelte +1 -1
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +20 -30
- package/dist/components/toast/ToasterModal.svelte +11 -15
- package/dist/components/toast/ToasterModal.svelte.d.ts +11 -16
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +14 -4
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +14 -4
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +13 -6
- package/dist/components/ui/accordion/index.d.ts +1 -1
- package/dist/components/ui/alert/alert-description.svelte.d.ts +14 -25
- package/dist/components/ui/alert/alert-title.svelte.d.ts +16 -27
- package/dist/components/ui/alert/alert.svelte.d.ts +16 -27
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +15 -9
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +13 -10
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +14 -5
- package/dist/components/ui/button/button.svelte +1 -1
- package/dist/components/ui/button/button.svelte.d.ts +16 -5
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-day.svelte +4 -4
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +14 -5
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-content.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-description.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-footer.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-header.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-title.svelte.d.ts +13 -7
- package/dist/components/ui/card/card.svelte +1 -1
- package/dist/components/ui/card/card.svelte.d.ts +14 -5
- package/dist/components/ui/checkbox/checkbox.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +14 -4
- package/dist/components/ui/collapsible/index.d.ts +1 -1
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-dialog.svelte.d.ts +13 -8
- package/dist/components/ui/command/command-empty.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-group.svelte.d.ts +13 -6
- package/dist/components/ui/command/command-input.svelte +1 -1
- package/dist/components/ui/command/command-input.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-item.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-list.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-separator.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +14 -5
- package/dist/components/ui/command/command.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-content.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +13 -8
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +14 -5
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +14 -5
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +13 -6
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +14 -5
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +14 -5
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +14 -3
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer.svelte.d.ts +14 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +13 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +13 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +14 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +13 -6
- package/dist/components/ui/input/input.svelte +1 -1
- package/dist/components/ui/input/input.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +14 -12
- package/dist/components/ui/input-otp/input-otp.svelte +1 -1
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +14 -3
- package/dist/components/ui/label/label.svelte.d.ts +14 -4
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/popover/popover-content.svelte.d.ts +13 -6
- package/dist/components/ui/progress/progress.svelte.d.ts +14 -4
- package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +14 -4
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +14 -5
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +14 -5
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +14 -4
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +13 -8
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/select-content.svelte.d.ts +13 -6
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-item.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-separator.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte.d.ts +14 -4
- package/dist/components/ui/separator/separator.svelte.d.ts +14 -4
- package/dist/components/ui/slider/slider.svelte +1 -1
- package/dist/components/ui/slider/slider.svelte.d.ts +14 -4
- package/dist/components/ui/sonner/sonner.svelte.d.ts +14 -4
- package/dist/components/ui/switch/switch.svelte +1 -1
- package/dist/components/ui/switch/switch.svelte.d.ts +14 -4
- package/dist/components/ui/table/table-body.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-caption.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-cell.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-footer.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-head.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-header.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-row.svelte.d.ts +14 -5
- package/dist/components/ui/table/table.svelte.d.ts +14 -5
- package/dist/components/ui/tabs/index.d.ts +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +14 -4
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +14 -4
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +14 -4
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +14 -5
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +15 -9
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +14 -6
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +14 -5
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +14 -4
- package/dist/components/widget-system/EditableWidget.svelte.d.ts +30 -42
- package/dist/components/widget-system/Moveable.svelte +62 -19
- package/dist/components/widget-system/Moveable.svelte.d.ts +37 -49
- package/dist/icons/Checked.svelte.d.ts +14 -18
- package/dist/icons/CheckerBoardBackground.svelte.d.ts +14 -3
- package/dist/icons/Close.svelte.d.ts +14 -18
- package/dist/icons/Exclamation.svelte.d.ts +19 -22
- package/dist/icons/FileBrowser.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgetic.svelte +6 -17
- package/dist/icons/LogoWidgetic.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgeticGreen.svelte +13 -0
- package/dist/icons/LogoWidgeticGreen.svelte.d.ts +16 -0
- package/dist/icons/LogoWidgeticType-old.svelte +13 -0
- package/dist/icons/LogoWidgeticType-old.svelte.d.ts +16 -0
- package/dist/icons/LogoWidgeticType-old.svg +4 -0
- package/dist/icons/LogoWidgeticType.svelte +18 -10
- package/dist/icons/LogoWidgeticType.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgeticType.svg +10 -3
- package/dist/icons/OpacitySliderArrows.svelte.d.ts +14 -3
- package/dist/icons/TestIcon.svelte.d.ts +19 -22
- package/dist/icons/index.d.ts +3 -1
- package/dist/icons/index.js +3 -1
- package/dist/styles/fonts.css +39 -50
- package/dist/styles/global.css +45 -68
- package/package.json +36 -47
- package/tailwind.config.ts +6 -1
- package/dist/components/search-input/index2.d.ts +0 -14
- package/dist/components/shad-editor/README.md +0 -18
- package/dist/icons/eye-off.svg +0 -1
- package/dist/icons/eye.svg +0 -1
- /package/dist/icons/{checked.svg → Checked.svg} +0 -0
package/dist/styles/global.css
CHANGED
|
@@ -1,53 +1,16 @@
|
|
|
1
|
-
/* Tailwind
|
|
2
|
-
@import
|
|
1
|
+
/* Tailwind 4
|
|
2
|
+
@import "tailwindcss"; */
|
|
3
|
+
|
|
4
|
+
/* Taildind 3 imports */
|
|
5
|
+
@import 'tailwindcss/base';
|
|
6
|
+
@import 'tailwindcss/components';
|
|
7
|
+
@import 'tailwindcss/utilities';
|
|
3
8
|
|
|
4
9
|
/* Import fonts css */
|
|
5
|
-
/* @import './fonts.css' layer(utilities); */
|
|
6
10
|
@import './fonts.css';
|
|
7
11
|
|
|
8
|
-
/* Tailwind config load *after* main imports - needed for tailwind 4
|
|
9
|
-
go 3 levels up in development mode, 2 levels up in production mode*/
|
|
10
|
-
@config "../../tailwind.config.ts";
|
|
11
|
-
|
|
12
|
-
/* Utility classes for border radius - Moved to top level */
|
|
13
|
-
/* NOTE: We define these custom utilities BEFORE the base layer
|
|
14
|
-
so they are available for @apply within the base layer if needed,
|
|
15
|
-
and Tailwind processes them correctly. */
|
|
16
|
-
@utility rounded-pill {
|
|
17
|
-
border-radius: var(--radius-pill);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@utility rounded-large {
|
|
21
|
-
border-radius: var(--radius-large);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@utility rounded-medium {
|
|
25
|
-
border-radius: var(--radius-medium);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@utility rounded-small {
|
|
29
|
-
border-radius: var(--radius-small);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/*
|
|
33
|
-
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
34
|
-
so we've added these compatibility styles to make sure everything still
|
|
35
|
-
looks the same as it did with Tailwind CSS v3.
|
|
36
|
-
|
|
37
|
-
If we ever want to remove these styles, we need to add an explicit border
|
|
38
|
-
color utility to any element that depends on these defaults.
|
|
39
|
-
*/
|
|
40
12
|
@layer base {
|
|
41
|
-
/*
|
|
42
|
-
*,
|
|
43
|
-
::after,
|
|
44
|
-
::before,
|
|
45
|
-
::backdrop,
|
|
46
|
-
::file-selector-button {
|
|
47
|
-
border-color: var(--color-gray-200, currentcolor);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* CSS Variables now defined globally on :root */
|
|
13
|
+
/* CSS Variables Here at the top of the base layer */
|
|
51
14
|
:root {
|
|
52
15
|
/* Site Grid Variables */
|
|
53
16
|
--site-column-width: 74px;
|
|
@@ -93,10 +56,11 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
93
56
|
/* Icon Colors */
|
|
94
57
|
--icon-success: 142 71% 45%;
|
|
95
58
|
--icon-error: 0 84% 60%;
|
|
59
|
+
}
|
|
96
60
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
61
|
+
/* CLASSES FOR WIDGETIC COMPONENTS */
|
|
62
|
+
/* convert colors from hex to HSL (Hue, Saturation, Lightness) format */
|
|
63
|
+
.widgetic-colors {
|
|
100
64
|
--dark: 120 35.7% 9.4%;
|
|
101
65
|
--deep-forest-green: 115 24.1% 24.7%;
|
|
102
66
|
--sage-green: 108 25.4% 52.9%;
|
|
@@ -105,6 +69,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
105
69
|
--forest-green: 90 16.7% 83.3%;
|
|
106
70
|
--error: 0 89% 65.7%;
|
|
107
71
|
--light-error: 0 45.5% 93.7%;
|
|
72
|
+
|
|
108
73
|
/* Greys */
|
|
109
74
|
--grey1: 0 0% 96.1%;
|
|
110
75
|
--grey2: 0 0% 94.1%;
|
|
@@ -113,10 +78,11 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
113
78
|
--grey5: 0 0% 40%;
|
|
114
79
|
--grey6: 0 0% 26.7%;
|
|
115
80
|
--grey7: 0 0% 12.9%;
|
|
81
|
+
}
|
|
116
82
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/*
|
|
83
|
+
/* Border radius tokens */
|
|
84
|
+
.widgetic-radius {
|
|
85
|
+
/* Corner radius values */
|
|
120
86
|
--radius-pill: 100px; /* Pill/Extra large corner radius */
|
|
121
87
|
--radius-large: 15px; /* Large corner radius */
|
|
122
88
|
--radius-medium: 12px; /* Medium corner radius */
|
|
@@ -128,6 +94,22 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
128
94
|
--breakpoint-tablet: 744px;
|
|
129
95
|
--breakpoint-desktop: 1156px;
|
|
130
96
|
}
|
|
97
|
+
/* Utility classes for border radius */
|
|
98
|
+
.rounded-pill {
|
|
99
|
+
border-radius: var(--radius-pill);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.rounded-large {
|
|
103
|
+
border-radius: var(--radius-large);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rounded-medium {
|
|
107
|
+
border-radius: var(--radius-medium);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rounded-small {
|
|
111
|
+
border-radius: var(--radius-small);
|
|
112
|
+
}
|
|
131
113
|
|
|
132
114
|
/*** GLOBAL STYLE CLASSES ***/
|
|
133
115
|
* {
|
|
@@ -144,18 +126,18 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
144
126
|
|
|
145
127
|
/* This is the root container of the website(app.html) */
|
|
146
128
|
.root-ct {
|
|
147
|
-
@apply
|
|
129
|
+
@apply min-h-screen;
|
|
148
130
|
display: block !important;
|
|
149
131
|
}
|
|
150
132
|
|
|
151
133
|
/* This is the root layout container of the website pages */
|
|
152
134
|
.layout-ct {
|
|
153
|
-
@apply
|
|
135
|
+
@apply min-h-screen w-full;
|
|
154
136
|
}
|
|
155
137
|
|
|
156
138
|
.page-ct {
|
|
157
139
|
width: 100%;
|
|
158
|
-
height:
|
|
140
|
+
height: 100vh;
|
|
159
141
|
/* background-color: green; */
|
|
160
142
|
}
|
|
161
143
|
|
|
@@ -182,7 +164,6 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
182
164
|
}
|
|
183
165
|
|
|
184
166
|
.native-scrollbar::-webkit-scrollbar-thumb {
|
|
185
|
-
@apply bg-muted;
|
|
186
167
|
cursor: pointer;
|
|
187
168
|
|
|
188
169
|
border: calc(var(--scrollbar-width) / 3) solid transparent;
|
|
@@ -570,8 +551,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
570
551
|
|
|
571
552
|
/* Modal Button Styles */
|
|
572
553
|
.modal-btn-primary {
|
|
573
|
-
@apply
|
|
574
|
-
cursor: pointer;
|
|
554
|
+
@apply h6 inline-flex items-center justify-center !important;
|
|
575
555
|
padding: 0 16px !important;
|
|
576
556
|
min-height: 34px !important;
|
|
577
557
|
border-radius: var(--radius-pill) !important;
|
|
@@ -587,8 +567,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
587
567
|
}
|
|
588
568
|
|
|
589
569
|
.modal-btn-secondary {
|
|
590
|
-
@apply
|
|
591
|
-
cursor: pointer;
|
|
570
|
+
@apply h6 inline-flex items-center justify-center !important;
|
|
592
571
|
padding: 0 16px !important;
|
|
593
572
|
min-height: 34px !important;
|
|
594
573
|
border-radius: var(--radius-pill) !important;
|
|
@@ -606,9 +585,9 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
606
585
|
}
|
|
607
586
|
|
|
608
587
|
.modal-btn-attention {
|
|
609
|
-
@apply
|
|
588
|
+
@apply h6 inline-flex items-center justify-center !important;
|
|
610
589
|
padding: 0 16px !important;
|
|
611
|
-
height: 34px
|
|
590
|
+
height: 34px;
|
|
612
591
|
border-radius: var(--radius-pill) !important;
|
|
613
592
|
background-color: hsl(var(--error)) !important;
|
|
614
593
|
color: white !important;
|
|
@@ -625,8 +604,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
625
604
|
|
|
626
605
|
/* Primary Button - Base styfles */
|
|
627
606
|
.btn-primary {
|
|
628
|
-
@apply
|
|
629
|
-
cursor: pointer;
|
|
607
|
+
@apply inline-flex items-center justify-center gap-2 !important;
|
|
630
608
|
padding: 8px 16px !important;
|
|
631
609
|
height: 34px !important;
|
|
632
610
|
border-radius: var(--radius-small) !important;
|
|
@@ -646,7 +624,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
646
624
|
|
|
647
625
|
/* Primary Button sizes */
|
|
648
626
|
.btn-primary-small {
|
|
649
|
-
@apply
|
|
627
|
+
@apply body-medium inline-flex items-center justify-center gap-1 !important;
|
|
650
628
|
padding: 4px 12px 6px 12px !important;
|
|
651
629
|
border-radius: var(--radius-medium) !important;
|
|
652
630
|
background-color: hsl(var(--deep-forest-green)) !important;
|
|
@@ -654,7 +632,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
654
632
|
}
|
|
655
633
|
|
|
656
634
|
.btn-primary-large {
|
|
657
|
-
@apply
|
|
635
|
+
@apply body-medium inline-flex items-center justify-center gap-3 !important;
|
|
658
636
|
padding: 16px 32px !important;
|
|
659
637
|
min-height: 56px !important;
|
|
660
638
|
border-radius: var(--radius-medium) !important;
|
|
@@ -674,8 +652,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
674
652
|
|
|
675
653
|
/* Secondary Button */
|
|
676
654
|
.btn-secondary {
|
|
677
|
-
@apply
|
|
678
|
-
cursor: pointer;
|
|
655
|
+
@apply h6 inline-flex items-center justify-center gap-2 !important;
|
|
679
656
|
padding: 0 16px !important;
|
|
680
657
|
height: 34px !important;
|
|
681
658
|
border-radius: var(--radius-small) !important;
|
|
@@ -714,7 +691,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
|
|
|
714
691
|
}
|
|
715
692
|
|
|
716
693
|
.dropdown-menu-item {
|
|
717
|
-
@apply
|
|
694
|
+
@apply flex items-center gap-2 w-full text-left h6 text-[hsl(var(--grey7))] whitespace-nowrap;
|
|
718
695
|
padding: 8px 16px;
|
|
719
696
|
}
|
|
720
697
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/design-system",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.81",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"**/*.ts"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"i": "rm -rf node_modules && rm -rf package-lock.json && npm i && npm link",
|
|
17
|
+
"i": "rm -rf node_modules && rm -rf package-lock.json && npm i && npm link && npm run set-git",
|
|
18
|
+
"set-git": "git config core.ignorecase false",
|
|
18
19
|
"unlink": "rm -rf \"$(npm root -g)/@widgetic/design-system\" 2>/dev/null || true",
|
|
19
20
|
"clean-modules": "rm -rf node_modules",
|
|
21
|
+
"clean-svelte-cache": "rm -rf .svelte-kit && npx svelte-kit sync",
|
|
22
|
+
"clean-npm-cache": "npm cache clean --force",
|
|
20
23
|
"llinks": "ls -la node_modules/@widgetic",
|
|
21
24
|
"glinks": "npm ls --global | grep widgetic",
|
|
22
25
|
"dev": "concurrently \"npm run dev-sv\" \"npm run package:watch\"",
|
|
23
26
|
"dev-with-check": "NODE_ENV=development concurrently \"npm run check:watch\" \"npm run dev-sv\" \"npm run package:watch\"",
|
|
24
27
|
"dev-open": "npm run dev-sv -- --open",
|
|
25
28
|
"dev-sv": "NODE_ENV=development vite dev",
|
|
29
|
+
"watch": "concurrently \"npm run check:watch\" \"npm run lint -- --watch\" \"npm run package:watch\"",
|
|
30
|
+
"build": "rm -rf dist && NODE_ENV=production vite build && npm run package",
|
|
31
|
+
"package:watch": "NODE_ENV=development svelte-package --watch | grep -v '$app/environment'",
|
|
26
32
|
"build-sv": "vite build",
|
|
27
|
-
"
|
|
28
|
-
"build": "NODE_ENV=production vite build && npm run package",
|
|
29
|
-
"package:watch:svelte": "NODE_ENV=development svelte-package --watch | grep -v '$app/environment'",
|
|
30
|
-
"package:watch:css": "chokidar 'dist/styles/global.css' --debounce 500 -c \"npm run update-config-path\" --initial",
|
|
31
|
-
"package:watch": "concurrently \"npm run package:watch:svelte\" \"npm run package:watch:css\"",
|
|
32
|
-
"package": "NODE_ENV=production svelte-package | grep -v '$app/environment' && npm run update-config-path",
|
|
33
|
-
"update-config-path": "if [ -f dist/styles/global.css ] && grep -q '@config \"../../../tailwind.config.ts\";' dist/styles/global.css; then echo 'Updating @config path in dist/styles/global.css...'; sed -i '' 's|@config \"../../../tailwind.config.ts\";|@config \"../../tailwind.config.ts\";|g' dist/styles/global.css; else :; fi",
|
|
33
|
+
"package": "svelte-package | grep -v '$app/environment'",
|
|
34
34
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
35
35
|
"check:watch": "NODE_OPTIONS='--max-old-space-size=8192' svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
36
36
|
"check:strict": "tsc --noEmit && npm run check",
|
|
@@ -39,10 +39,9 @@
|
|
|
39
39
|
"i-shadcn": "npm run clean-shadcn && npm run i-shadcn-init && npm run i-shadcn-comps",
|
|
40
40
|
"clean-shadcn": "rm -rf ./src/lib/components/ui",
|
|
41
41
|
"i-shadcn-init": "npx shadcn-svelte@next init",
|
|
42
|
-
"i-shadcn-comps": "npx shadcn-svelte@next add accordion badge
|
|
42
|
+
"i-shadcn-comps": "npx shadcn-svelte@next add accordion badge button calendar range-calendar card checkbox collapsible dialog drawer dropdown-menu input input-otp label popover progress radio-group scroll-area select separator slider switch table tabs textarea tooltip",
|
|
43
43
|
"format": "prettier --write .",
|
|
44
44
|
"lint": "prettier --check . && eslint .",
|
|
45
|
-
"clvtch": "rm -rf node_modules/.vite",
|
|
46
45
|
"prepublishOnly": "npm run package",
|
|
47
46
|
"publish-package": "npm run package && npm publish"
|
|
48
47
|
},
|
|
@@ -107,46 +106,50 @@
|
|
|
107
106
|
"dist",
|
|
108
107
|
"tailwind.config.ts"
|
|
109
108
|
],
|
|
110
|
-
"peerDependencies": {
|
|
111
|
-
"@internationalized/date": "^3.6.0",
|
|
112
|
-
"@sveltejs/kit": "^2.20.7",
|
|
113
|
-
"bits-ui": "^1.3.19",
|
|
114
|
-
"shadcn-svelte": "1.0.0-next.9",
|
|
115
|
-
"svelte": "^5.27.0",
|
|
116
|
-
"tailwindcss": "^4.1.4"
|
|
117
|
-
},
|
|
118
109
|
"devDependencies": {
|
|
119
110
|
"@internationalized/date": "^3.6.0",
|
|
120
111
|
"@sveltejs/adapter-node": "^5.2.9",
|
|
121
|
-
"
|
|
112
|
+
"svelte": "^5.25.6",
|
|
113
|
+
"@sveltejs/kit": "^2.20.2",
|
|
122
114
|
"@sveltejs/package": "^2.3.7",
|
|
123
115
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
124
|
-
"@tailwindcss/postcss": "^4.1.4",
|
|
125
116
|
"@tailwindcss/typography": "^0.5.15",
|
|
126
117
|
"@types/node": "^22.10.1",
|
|
127
|
-
"
|
|
128
|
-
"
|
|
118
|
+
"autoprefixer": "^10.4.20",
|
|
119
|
+
"bits-ui": "^1.3.0",
|
|
120
|
+
"clsx": "^2.1.1",
|
|
129
121
|
"concurrently": "^9.1.0",
|
|
130
122
|
"eslint": "^9.7.0",
|
|
131
123
|
"eslint-config-prettier": "^9.1.0",
|
|
124
|
+
"eslint-plugin-import": "^2.29.1",
|
|
132
125
|
"eslint-plugin-svelte": "^2.36.0",
|
|
133
126
|
"globals": "^15.0.0",
|
|
134
|
-
"
|
|
127
|
+
"lowlight": "^3.2.0",
|
|
128
|
+
"mode-watcher": "^0.5.0",
|
|
135
129
|
"prettier": "^3.3.2",
|
|
136
130
|
"prettier-plugin-svelte": "^3.2.6",
|
|
137
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
138
|
-
"
|
|
139
|
-
"svelte": "^5.27.0",
|
|
140
|
-
"svelte-check": "^4.1.6",
|
|
131
|
+
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
132
|
+
"svelte-check": "^4.1.0",
|
|
141
133
|
"svelte-sonner": "^0.3.28",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
134
|
+
"svelte-tiptap": "^2.0.3",
|
|
135
|
+
"tailwindcss": "^3.4.16",
|
|
136
|
+
"tailwind-merge": "^2.5.5",
|
|
137
|
+
"tailwind-variants": "^0.3.0",
|
|
138
|
+
"tailwindcss-animate": "^1.0.7",
|
|
139
|
+
"typescript": "^5.0.0",
|
|
140
|
+
"typescript-eslint": "^8.0.0",
|
|
141
|
+
"vaul-svelte": "^1.0.0-next.3",
|
|
142
|
+
"vite": "^6.0.1"
|
|
143
|
+
},
|
|
144
|
+
"volta": {
|
|
145
|
+
"node": "22.14.0",
|
|
146
|
+
"npm": "11.1.0"
|
|
146
147
|
},
|
|
147
148
|
"dependencies": {
|
|
148
149
|
"@hirasso/thumbhash-custom-element": "^0.5.5",
|
|
149
150
|
"@tabler/icons-svelte": "^3.30.0",
|
|
151
|
+
"pdfjs-dist": "^4.10.38",
|
|
152
|
+
"svelte-awesome-color-picker": "^3.1.4",
|
|
150
153
|
"@tiptap/core": "^2.9.1",
|
|
151
154
|
"@tiptap/extension-bubble-menu": "^2.9.1",
|
|
152
155
|
"@tiptap/extension-code-block-lowlight": "^2.9.1",
|
|
@@ -169,21 +172,7 @@
|
|
|
169
172
|
"@tiptap/extension-underline": "^2.9.1",
|
|
170
173
|
"@tiptap/pm": "^2.9.1",
|
|
171
174
|
"@tiptap/starter-kit": "^2.9.1",
|
|
172
|
-
"clsx": "^2.1.1",
|
|
173
175
|
"lowlight": "^3.2.0",
|
|
174
|
-
"lucide-svelte": "^0.468.0"
|
|
175
|
-
"mode-watcher": "^0.5.0",
|
|
176
|
-
"pdfjs-dist": "^4.10.38",
|
|
177
|
-
"svelte-awesome-color-picker": "^3.1.4",
|
|
178
|
-
"svelte-sonner": "^0.3.28",
|
|
179
|
-
"svelte-tiptap": "^2.0.3",
|
|
180
|
-
"tailwind-merge": "^2.5.5",
|
|
181
|
-
"tailwind-variants": "^0.3.0",
|
|
182
|
-
"tailwindcss-animate": "^1.0.7",
|
|
183
|
-
"vaul-svelte": "^1.0.0-next.3"
|
|
184
|
-
},
|
|
185
|
-
"volta": {
|
|
186
|
-
"node": "22.14.0",
|
|
187
|
-
"npm": "11.1.0"
|
|
176
|
+
"lucide-svelte": "^0.468.0"
|
|
188
177
|
}
|
|
189
178
|
}
|
package/tailwind.config.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { fontFamily } from "tailwindcss/defaultTheme";
|
|
1
2
|
import type { Config } from "tailwindcss";
|
|
2
3
|
import tailwindcssAnimate from "tailwindcss-animate";
|
|
3
4
|
import tailwindcssTypography from '@tailwindcss/typography';
|
|
4
5
|
|
|
5
6
|
const config: Config = {
|
|
6
|
-
darkMode: "class",
|
|
7
|
+
darkMode: ["class"],
|
|
7
8
|
content: ["./src/**/*.{html,js,svelte,ts}"],
|
|
9
|
+
safelist: ["dark"],
|
|
8
10
|
theme: {
|
|
9
11
|
container: {
|
|
10
12
|
center: true,
|
|
@@ -65,6 +67,9 @@ const config: Config = {
|
|
|
65
67
|
md: "calc(var(--radius) - 2px)",
|
|
66
68
|
sm: "calc(var(--radius) - 4px)"
|
|
67
69
|
},
|
|
70
|
+
fontFamily: {
|
|
71
|
+
sans: [...fontFamily.sans]
|
|
72
|
+
},
|
|
68
73
|
keyframes: {
|
|
69
74
|
"accordion-down": {
|
|
70
75
|
from: { height: "0" },
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from 'svelte';
|
|
2
|
-
|
|
3
|
-
export interface SearchInputProps {
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onInput?: (event: Event) => Promise<void> | void;
|
|
7
|
-
onKeydown?: (event: KeyboardEvent) => void;
|
|
8
|
-
onClear?: () => void;
|
|
9
|
-
onPaste?: (event: ClipboardEvent) => void;
|
|
10
|
-
containerClass?: string;
|
|
11
|
-
inputClass?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default class SearchInput extends SvelteComponent<SearchInputProps> {}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# ShadEditor Component
|
|
2
|
-
|
|
3
|
-
This directory contains the Svelte components for a rich text editor based on Tiptap and styled with shadcn-svelte UI elements.
|
|
4
|
-
|
|
5
|
-
## Origin
|
|
6
|
-
|
|
7
|
-
The code was originally scaffolded using version `0.0.7` of the now-deprecated `shadeditor` CLI tool.
|
|
8
|
-
|
|
9
|
-
* Original (deprecated) npm package: [https://www.npmjs.com/package/shadeditor](https://www.npmjs.com/package/shadeditor)
|
|
10
|
-
* The author appears to have continued development under a new name/project called "Edra": [https://edra.tsuzat.com/](https://edra.tsuzat.com/)
|
|
11
|
-
|
|
12
|
-
## Current Status
|
|
13
|
-
|
|
14
|
-
The components in this directory have been adapted to work within the Widgetic Design System after its migration to **Tailwind CSS v4**.
|
|
15
|
-
|
|
16
|
-
**Important:** Do not attempt to update or reinstall this component using the original `shadeditor` CLI (`npx shadeditor init`) or the new one from edra, as it is designed for Tailwind v3 and will likely break the current Tailwind v4 configuration and component adaptations.
|
|
17
|
-
|
|
18
|
-
Use the component as it exists within this design system project.
|
package/dist/icons/eye-off.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828" /><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87" /><path d="M3 3l18 18" /></svg>
|
package/dist/icons/eye.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /></svg>
|
|
File without changes
|