rimecms 0.26.7 → 0.26.8
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/dist/adapter-sqlite/where.js +7 -1
- package/dist/core/areas/api/get.server.js +6 -2
- package/dist/core/collections/nested/hooks/index.server.js +3 -1
- package/dist/core/collections/upload/upload.d.ts +8 -8
- package/dist/core/collections/upload/util/path.js +2 -1
- package/dist/core/config/types.d.ts +1 -1
- package/dist/core/dev/generate/sanitize/index.js +707 -707
- package/dist/core/errors/handler.server.js +3 -3
- package/dist/core/fields/util.js +2 -1
- package/dist/core/i18n/en/common.js +60 -60
- package/dist/core/i18n/en/errors.js +13 -12
- package/dist/core/i18n/en/fields.js +11 -11
- package/dist/core/i18n/en/mail.js +2 -2
- package/dist/core/i18n/fr/common.js +64 -64
- package/dist/core/i18n/fr/errors.js +11 -11
- package/dist/core/i18n/fr/fields.js +11 -11
- package/dist/core/i18n/fr/mail.js +2 -2
- package/dist/core/logger/index.server.js +136 -136
- package/dist/core/operations/hooks/before-upsert/validate-fields.server.js +5 -5
- package/dist/core/plugins/cache/HeaderButton.svelte +11 -11
- package/dist/fields/blocks/component/AddBlockButton.svelte +161 -161
- package/dist/fields/blocks/component/Block.svelte +157 -157
- package/dist/fields/blocks/component/BlockActions.svelte +36 -36
- package/dist/fields/blocks/component/Blocks.svelte +154 -154
- package/dist/fields/blocks/component/Cell.svelte +12 -12
- package/dist/fields/blocks/component/ToggleBlockButton.svelte +11 -11
- package/dist/fields/checkbox/component/Checkbox.svelte +51 -51
- package/dist/fields/combobox/component/ComboBox.svelte +88 -88
- package/dist/fields/combobox/component/combobox.css +24 -24
- package/dist/fields/date/component/Cell.svelte +5 -5
- package/dist/fields/date/component/Date.svelte +92 -92
- package/dist/fields/email/component/Email.svelte +58 -58
- package/dist/fields/group/component/Group.svelte +131 -131
- package/dist/fields/link/component/Cell.svelte +9 -9
- package/dist/fields/link/component/Link.svelte +269 -269
- package/dist/fields/link/component/RessourceInput.svelte +183 -183
- package/dist/fields/number/component/Number.svelte +118 -118
- package/dist/fields/number/component/number.css +52 -52
- package/dist/fields/radio/component/Radio.svelte +56 -53
- package/dist/fields/relation/component/Cell.svelte +51 -51
- package/dist/fields/relation/component/Relation.svelte +226 -226
- package/dist/fields/relation/component/default/Default.svelte +218 -218
- package/dist/fields/relation/component/upload/Browse.svelte +227 -227
- package/dist/fields/relation/component/upload/Upload.svelte +112 -112
- package/dist/fields/relation/component/upload/upload.css +72 -72
- package/dist/fields/rich-text/component/Cell.svelte +5 -5
- package/dist/fields/rich-text/component/RichText.svelte +95 -95
- package/dist/fields/rich-text/component/bubble-menu/bubble-menu.css +15 -15
- package/dist/fields/rich-text/component/bubble-menu/bubble-menu.svelte +148 -148
- package/dist/fields/rich-text/component/bubble-menu/icon-button/icon-button.css +10 -10
- package/dist/fields/rich-text/component/bubble-menu/icon-button/icon-button.svelte +23 -17
- package/dist/fields/rich-text/component/bubble-menu/node-selector/node-selector.css +37 -37
- package/dist/fields/rich-text/component/bubble-menu/node-selector/node-selector.svelte +93 -89
- package/dist/fields/rich-text/component/drag-handle/drag-handle.css +12 -12
- package/dist/fields/rich-text/component/drag-handle/drag-handle.svelte +27 -27
- package/dist/fields/rich-text/component/styles/rich-text.css +142 -142
- package/dist/fields/rich-text/component/suggestion/suggestion.svelte +79 -79
- package/dist/fields/rich-text/core/extensions/current-node/current-node.css +3 -3
- package/dist/fields/rich-text/core/extensions/drag-handle/drag-handle.js +10 -7
- package/dist/fields/rich-text/core/extensions/drag-handle/helpers/cloneElement.js +4 -1
- package/dist/fields/rich-text/core/extensions/drag-handle/helpers/dragHandler.js +4 -4
- package/dist/fields/rich-text/core/extensions/drag-handle/helpers/findNextElementFromCursor.js +4 -4
- package/dist/fields/rich-text/core/extensions/drag-handle/helpers/getInnerCoords.js +1 -1
- package/dist/fields/rich-text/core/features/fields/fields.css +16 -16
- package/dist/fields/rich-text/core/features/fields/fields.svelte +50 -50
- package/dist/fields/rich-text/core/features/hr/hr.css +15 -15
- package/dist/fields/rich-text/core/features/link/component/link-selector.css +2 -2
- package/dist/fields/rich-text/core/features/link/component/link-selector.svelte +266 -266
- package/dist/fields/rich-text/core/features/resource/resource.svelte +134 -134
- package/dist/fields/rich-text/core/features/upload/upload.svelte +230 -230
- package/dist/fields/rich-text/core/render-rich-text.svelte +162 -162
- package/dist/fields/rich-text/core/svelte/node-view-wrapper.svelte +25 -18
- package/dist/fields/rich-text/util.js +2 -1
- package/dist/fields/select/component/Select.svelte +194 -194
- package/dist/fields/separator/component/Separator.svelte +5 -5
- package/dist/fields/slug/component/Cell.svelte +4 -4
- package/dist/fields/slug/component/Slug.svelte +99 -99
- package/dist/fields/tabs/component/Tabs.svelte +96 -96
- package/dist/fields/text/component/Text.svelte +54 -54
- package/dist/fields/textarea/component/TextArea.svelte +51 -51
- package/dist/fields/time/component/Time.svelte +44 -44
- package/dist/fields/toggle/component/Cell.svelte +10 -10
- package/dist/fields/toggle/component/Toggle.svelte +36 -36
- package/dist/fields/tree/component/AddItemButton.svelte +35 -29
- package/dist/fields/tree/component/Cell.svelte +12 -12
- package/dist/fields/tree/component/ToggleBlockButton.svelte +11 -11
- package/dist/fields/tree/component/Tree.svelte +150 -150
- package/dist/fields/tree/component/TreeBlock.svelte +174 -174
- package/dist/fields/tree/component/TreeBlockActions.svelte +13 -13
- package/dist/fields/tree/index.js +3 -2
- package/dist/live.d.ts +2 -2
- package/dist/live.js +2 -2
- package/dist/panel/components/Root.svelte +70 -70
- package/dist/panel/components/fields/Error.svelte +35 -35
- package/dist/panel/components/fields/FieldsPreview.svelte +71 -71
- package/dist/panel/components/fields/FieldsPreviewTrigger.svelte +11 -11
- package/dist/panel/components/fields/Hint.svelte +12 -12
- package/dist/panel/components/fields/Label.svelte +31 -26
- package/dist/panel/components/fields/LabelFor.svelte +26 -26
- package/dist/panel/components/fields/RenderFields.svelte +102 -102
- package/dist/panel/components/sections/auth/AuthForm.svelte +102 -102
- package/dist/panel/components/sections/collection/Empty.svelte +18 -18
- package/dist/panel/components/sections/collection/StatusDot.svelte +13 -13
- package/dist/panel/components/sections/collection/bulk-upload/BulkUploadDialog.svelte +30 -28
- package/dist/panel/components/sections/collection/bulk-upload/DropZone.svelte +176 -169
- package/dist/panel/components/sections/collection/folder/Folder.svelte +38 -38
- package/dist/panel/components/sections/collection/folder/FolderEdit.svelte +57 -57
- package/dist/panel/components/sections/collection/folder/FolderWithActions.svelte +223 -223
- package/dist/panel/components/sections/collection/grid/CollectionGrid.svelte +102 -102
- package/dist/panel/components/sections/collection/grid/create-directory-dialog/CreateDirectoryDialog.svelte +50 -50
- package/dist/panel/components/sections/collection/grid/grid-item/GridItem.svelte +56 -56
- package/dist/panel/components/sections/collection/header/ButtonCreate.svelte +29 -29
- package/dist/panel/components/sections/collection/header/DisplayMode.svelte +59 -59
- package/dist/panel/components/sections/collection/header/Header.svelte +11 -11
- package/dist/panel/components/sections/collection/header/SearchInput.svelte +41 -41
- package/dist/panel/components/sections/collection/header/SelectUI.svelte +51 -51
- package/dist/panel/components/sections/collection/header/Separator.svelte +4 -4
- package/dist/panel/components/sections/collection/list/CollectionList.svelte +46 -46
- package/dist/panel/components/sections/collection/list/header/Header.svelte +56 -56
- package/dist/panel/components/sections/collection/list/row/Row.svelte +115 -115
- package/dist/panel/components/sections/collection/tree/CollectionTree.svelte +139 -139
- package/dist/panel/components/sections/collection/tree/CollectionTreeNode.svelte +56 -56
- package/dist/panel/components/sections/collection/upload-thumb-cell/UploadThumbCell.svelte +64 -64
- package/dist/panel/components/sections/document/AuthAPIKeyDialog.svelte +66 -66
- package/dist/panel/components/sections/document/AuthFooter.svelte +81 -81
- package/dist/panel/components/sections/document/ButtonSave.svelte +34 -27
- package/dist/panel/components/sections/document/ButtonStatus.svelte +79 -79
- package/dist/panel/components/sections/document/CurrentlyEdited.svelte +36 -36
- package/dist/panel/components/sections/document/Document.svelte +223 -223
- package/dist/panel/components/sections/document/FloatingUI.svelte +69 -69
- package/dist/panel/components/sections/document/Header.svelte +105 -105
- package/dist/panel/components/sections/document/Settings.svelte +167 -167
- package/dist/panel/components/sections/document/Versions.svelte +89 -89
- package/dist/panel/components/sections/document/upload-header/UploadHeader.svelte +205 -205
- package/dist/panel/components/sections/document/upload-header/drop-zone/DropZone.svelte +141 -141
- package/dist/panel/components/sections/live/Consumer.svelte +14 -14
- package/dist/panel/components/sections/live/Provider.svelte +10 -10
- package/dist/panel/components/sections/live/SidePanel.svelte +56 -56
- package/dist/panel/components/sections/live/side-panel.css +10 -8
- package/dist/panel/components/sections/page-layout/Page.svelte +23 -23
- package/dist/panel/components/sections/unauthorized/Unauthorized.svelte +22 -22
- package/dist/panel/components/ui/breadcrumb/BreadCrumb.svelte +40 -40
- package/dist/panel/components/ui/button/button.svelte +226 -226
- package/dist/panel/components/ui/calendar/calendar-cell.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-day.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-grid-body.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-grid-head.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-grid-row.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-grid.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-head-cell.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-header.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-heading.svelte +6 -2
- package/dist/panel/components/ui/calendar/calendar-months.svelte +21 -16
- package/dist/panel/components/ui/calendar/calendar-next-button.svelte +13 -8
- package/dist/panel/components/ui/calendar/calendar-prev-button.svelte +13 -8
- package/dist/panel/components/ui/calendar/calendar.css +88 -88
- package/dist/panel/components/ui/calendar/calendar.svelte +50 -50
- package/dist/panel/components/ui/card/card-content.svelte +17 -12
- package/dist/panel/components/ui/card/card-description.svelte +14 -9
- package/dist/panel/components/ui/card/card-footer.svelte +17 -12
- package/dist/panel/components/ui/card/card-header.svelte +15 -10
- package/dist/panel/components/ui/card/card-title.svelte +25 -19
- package/dist/panel/components/ui/card/card.svelte +19 -14
- package/dist/panel/components/ui/card-document/card-document.svelte +73 -73
- package/dist/panel/components/ui/card-resource/card-resource.svelte +108 -108
- package/dist/panel/components/ui/checkbox/checkbox.css +28 -28
- package/dist/panel/components/ui/checkbox/checkbox.svelte +13 -13
- package/dist/panel/components/ui/command/command-dialog.css +24 -24
- package/dist/panel/components/ui/command/command-dialog.svelte +28 -18
- package/dist/panel/components/ui/command/command-empty.css +2 -2
- package/dist/panel/components/ui/command/command-empty.svelte +7 -3
- package/dist/panel/components/ui/command/command-group.css +20 -20
- package/dist/panel/components/ui/command/command-group.svelte +17 -17
- package/dist/panel/components/ui/command/command-input-select.svelte +50 -45
- package/dist/panel/components/ui/command/command-input.svelte +57 -57
- package/dist/panel/components/ui/command/command-item.css +18 -18
- package/dist/panel/components/ui/command/command-item.svelte +7 -3
- package/dist/panel/components/ui/command/command-list.css +4 -4
- package/dist/panel/components/ui/command/command-list.svelte +7 -3
- package/dist/panel/components/ui/command/command-separator.css +4 -4
- package/dist/panel/components/ui/command/command-separator.svelte +7 -3
- package/dist/panel/components/ui/command/command.css +5 -5
- package/dist/panel/components/ui/command/command.svelte +8 -8
- package/dist/panel/components/ui/context-menu/ContextMenu.svelte +10 -5
- package/dist/panel/components/ui/context-menu/ContextMenu.svelte.d.ts +2 -2
- package/dist/panel/components/ui/context-menu/ContextMenuItem.svelte +8 -8
- package/dist/panel/components/ui/context-menu/context-menu-item.css +20 -20
- package/dist/panel/components/ui/context-menu/context-menu.css +12 -12
- package/dist/panel/components/ui/dialog/dialog-content.css +45 -45
- package/dist/panel/components/ui/dialog/dialog-content.svelte +33 -33
- package/dist/panel/components/ui/dialog/dialog-description.css +2 -2
- package/dist/panel/components/ui/dialog/dialog-description.svelte +7 -3
- package/dist/panel/components/ui/dialog/dialog-footer.svelte +20 -20
- package/dist/panel/components/ui/dialog/dialog-header.svelte +22 -22
- package/dist/panel/components/ui/dialog/dialog-overlay.css +6 -6
- package/dist/panel/components/ui/dialog/dialog-overlay.svelte +7 -3
- package/dist/panel/components/ui/dialog/dialog-title.css +3 -3
- package/dist/panel/components/ui/dialog/dialog-title.svelte +7 -3
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +55 -55
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-content.css +8 -8
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-content.svelte +14 -9
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-group-heading.css +5 -5
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +10 -10
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-item.css +19 -19
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-item.svelte +9 -9
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-radio-item.css +17 -17
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +17 -17
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-separator.css +3 -3
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-separator.svelte +12 -4
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +6 -2
- package/dist/panel/components/ui/input/input.svelte +93 -93
- package/dist/panel/components/ui/label/label.css +7 -7
- package/dist/panel/components/ui/label/label.svelte +8 -8
- package/dist/panel/components/ui/language-switcher/LanguageSwitcher.svelte +48 -48
- package/dist/panel/components/ui/nav/Nav.svelte +151 -151
- package/dist/panel/components/ui/nav/NavGroup.svelte +85 -85
- package/dist/panel/components/ui/nav/NavItem.svelte +42 -42
- package/dist/panel/components/ui/nav/NavItemButton.svelte +39 -38
- package/dist/panel/components/ui/nav/NavItemButtonCaret.svelte +8 -8
- package/dist/panel/components/ui/nav/UserButton.svelte +90 -90
- package/dist/panel/components/ui/page-header/PageHeader.svelte +80 -80
- package/dist/panel/components/ui/pane/pane-resizer.svelte +12 -12
- package/dist/panel/components/ui/popover/popover-content.css +7 -7
- package/dist/panel/components/ui/popover/popover-content.svelte +16 -10
- package/dist/panel/components/ui/radio-group/radio-group-item.svelte +8 -7
- package/dist/panel/components/ui/radio-group/radio-group.css +23 -23
- package/dist/panel/components/ui/radio-group/radio-group.svelte +8 -8
- package/dist/panel/components/ui/radio-row-group/radio-row-group-item.svelte +9 -9
- package/dist/panel/components/ui/radio-row-group/radio-row-group.css +27 -27
- package/dist/panel/components/ui/radio-row-group/radio-row-group.svelte +14 -9
- package/dist/panel/components/ui/scroll-area/scroll-area-scrollbar.svelte +14 -14
- package/dist/panel/components/ui/scroll-area/scroll-area.css +21 -21
- package/dist/panel/components/ui/scroll-area/scroll-area.svelte +26 -26
- package/dist/panel/components/ui/separator/separator.svelte +25 -25
- package/dist/panel/components/ui/sheet/sheet-content.svelte +33 -33
- package/dist/panel/components/ui/sheet/sheet-description.svelte +6 -2
- package/dist/panel/components/ui/sheet/sheet-footer.svelte +10 -5
- package/dist/panel/components/ui/sheet/sheet-header.svelte +10 -5
- package/dist/panel/components/ui/sheet/sheet-overlay.svelte +7 -3
- package/dist/panel/components/ui/sheet/sheet-title.svelte +6 -2
- package/dist/panel/components/ui/sheet/sheet.css +81 -81
- package/dist/panel/components/ui/sheet/sheet.svelte +5 -5
- package/dist/panel/components/ui/sonner/sonner.css +12 -12
- package/dist/panel/components/ui/sonner/sonner.svelte +15 -15
- package/dist/panel/components/ui/spin-loader/SpinLoader.svelte +2 -2
- package/dist/panel/components/ui/spin-loader/spin-loader.css +10 -10
- package/dist/panel/components/ui/switch/switch.css +36 -36
- package/dist/panel/components/ui/switch/switch.svelte +9 -9
- package/dist/panel/components/ui/tabs/tabs-content.svelte +6 -2
- package/dist/panel/components/ui/tabs/tabs-list.svelte +2 -2
- package/dist/panel/components/ui/tabs/tabs-trigger.svelte +6 -2
- package/dist/panel/components/ui/tabs/tabs.css +47 -49
- package/dist/panel/components/ui/tabs/tabs.svelte +5 -5
- package/dist/panel/components/ui/tag/tag.svelte +49 -45
- package/dist/panel/components/ui/tooltip/tooltip-content.svelte +31 -31
- package/dist/panel/pages/area/Area.svelte +17 -17
- package/dist/panel/pages/area/AreaVersionsDoc.svelte +19 -19
- package/dist/panel/pages/area/load.server.js +10 -2
- package/dist/panel/pages/auth/forgot-password/ForgotPassword.svelte +46 -46
- package/dist/panel/pages/auth/reset-password/ResetPassword.svelte +54 -54
- package/dist/panel/pages/auth/sign-in/SignIn.svelte +41 -41
- package/dist/panel/pages/collection/Collection.svelte +121 -121
- package/dist/panel/pages/collection/load.server.js +8 -2
- package/dist/panel/pages/collection-document/CollectionDocVersions.svelte +26 -26
- package/dist/panel/pages/collection-document/CollectionDocument.svelte +20 -20
- package/dist/panel/pages/collection-document/actions.server.js +3 -1
- package/dist/panel/pages/collection-document/load.server.js +4 -1
- package/dist/panel/pages/dashboard/Dashboard.svelte +109 -109
- package/dist/panel/pages/index.actions.server.js +1 -1
- package/dist/panel/pages/index.load.server.js +1 -1
- package/dist/panel/pages/live/Live.svelte +199 -192
- package/dist/panel/style/font.css +32 -32
- package/dist/panel/style/index.css +81 -81
- package/dist/panel/style/palette.css +27 -28
- package/dist/panel/style/radius.css +8 -8
- package/dist/panel/style/shadow.css +8 -8
- package/dist/panel/style/size.css +41 -41
- package/dist/panel/style/util.css +1 -1
- package/dist/util/cases.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Popover as PopoverPrimitive } from 'bits-ui';
|
|
3
|
+
import './popover-content.css';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
sideOffset = 4,
|
|
9
|
+
align = 'center',
|
|
10
|
+
...restProps
|
|
11
|
+
}: PopoverPrimitive.ContentProps = $props();
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<PopoverPrimitive.Content
|
|
14
|
+
<PopoverPrimitive.Content
|
|
15
|
+
{sideOffset}
|
|
16
|
+
{align}
|
|
17
|
+
bind:ref
|
|
18
|
+
class="rz-popover {className}"
|
|
19
|
+
{...restProps}
|
|
20
|
+
/>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
...restProps
|
|
8
|
+
}: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<RadioGroupPrimitive.Item bind:ref class="rz-radio-group-item {className}" {...restProps}
|
|
11
|
+
<RadioGroupPrimitive.Item bind:ref class="rz-radio-group-item {className}" {...restProps}
|
|
12
|
+
></RadioGroupPrimitive.Item>
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
.rz-radio-group {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: var(--rz-size-2);
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
&[data-disabled] {
|
|
6
|
+
opacity: 0.4;
|
|
7
|
+
cursor: not-allowed;
|
|
8
|
+
label,
|
|
9
|
+
button {
|
|
10
|
+
cursor: not-allowed;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.rz-radio-group-item {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
border: 1px solid var(--rz-input-border-color);
|
|
17
|
+
background-color: var(--rz-input-bg);
|
|
18
|
+
border-radius: var(--rz-radius-full);
|
|
19
|
+
transition: all 0.066s ease-in-out;
|
|
20
|
+
height: var(--rz-size-5);
|
|
21
|
+
width: var(--rz-size-5);
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
cursor: pointer;
|
|
24
24
|
}
|
|
25
25
|
.rz-radio-group-item:hover {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
--border-color: var(--rz-gray-2);
|
|
27
|
+
--border-opacity: 0.3;
|
|
28
|
+
border-width: 6px;
|
|
29
29
|
}
|
|
30
30
|
.rz-radio-group-item[data-state='checked'] {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
border: 6px solid hsl(var(--rz-color-spot));
|
|
32
|
+
background-color: hsl(var(--rz-gray-19));
|
|
33
33
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
|
|
3
|
+
import './radio-group.css';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
value = $bindable(''),
|
|
9
|
+
...restProps
|
|
10
|
+
}: RadioGroupPrimitive.RootProps = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<RadioGroupPrimitive.Root bind:ref bind:value class="rz-radio-group {className}" {...restProps} />
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> & { children: Snippet } = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<RadioGroupPrimitive.Item bind:ref class="rz-radio-row-group-item {className}" {...restProps}>
|
|
14
|
-
|
|
14
|
+
{@render children()}
|
|
15
15
|
</RadioGroupPrimitive.Item>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
.rz-radio-row-group {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-self: flex-start;
|
|
4
|
+
width: auto;
|
|
5
|
+
border: 1px solid var(--rz-input-border-color);
|
|
6
|
+
background-color: light-dark(hsl(var(--rz-gray-16)), hsl(var(--rz-gray-3) / 0.6));
|
|
7
|
+
border-radius: var(--rz-radius-lg);
|
|
8
|
+
max-height: var(--rz-input-height);
|
|
9
|
+
height: var(--rz-input-height);
|
|
10
|
+
padding: var(--rz-size-1);
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
&[data-disabled] {
|
|
13
|
+
opacity: 0.4;
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
label,
|
|
16
|
+
button {
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.rz-radio-row-group-item {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
padding: 0 var(--rz-size-4);
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border-radius: var(--rz-radius-md);
|
|
26
|
+
height: 100%;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
font-variation-settings: 'wght' 500;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
cursor: pointer;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.rz-radio-row-group-item[data-state='checked'] {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
box-shadow: var(--rz-shadow-sm);
|
|
35
|
+
background-color: hsl(var(--rz-input-bg));
|
|
36
36
|
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
|
|
3
|
+
import './radio-row-group.css';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
value = $bindable(''),
|
|
9
|
+
...restProps
|
|
10
|
+
}: RadioGroupPrimitive.RootProps = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<RadioGroupPrimitive.Root
|
|
13
|
+
<RadioGroupPrimitive.Root
|
|
14
|
+
bind:ref
|
|
15
|
+
bind:value
|
|
16
|
+
class="rz-radio-row-group {className}"
|
|
17
|
+
{...restProps}
|
|
18
|
+
/>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive, type WithoutChild } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
orientation = 'vertical',
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithoutChild<ScrollAreaPrimitive.ScrollbarProps> = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<ScrollAreaPrimitive.Scrollbar
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
bind:ref
|
|
15
|
+
{orientation}
|
|
16
|
+
class="rz-scroll-area-scroll-bar rz-scroll-area-scroll-bar--{orientation} {className}"
|
|
17
|
+
{...restProps}
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
{@render children?.()}
|
|
20
|
+
<ScrollAreaPrimitive.Thumb class="rz-scroll-area-scroll-bar__thumb" />
|
|
21
21
|
</ScrollAreaPrimitive.Scrollbar>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.rz-scroll-area {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
position: relative;
|
|
3
|
+
overflow: hidden;
|
|
4
4
|
}
|
|
5
5
|
.rz-scroll-area__viewport {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/**************************************/
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
/**************************************/
|
|
13
13
|
|
|
14
14
|
.rz-scroll-area-scroll-bar {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
display: flex;
|
|
16
|
+
touch-action: none;
|
|
17
|
+
-webkit-user-select: none;
|
|
18
|
+
-moz-user-select: none;
|
|
19
|
+
user-select: none;
|
|
20
|
+
transition-property: background-color, border-color, fill, stroke;
|
|
21
|
+
padding: 1px;
|
|
22
22
|
}
|
|
23
23
|
.rz-scroll-area-scroll-bar--horizontal {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
height: var(--rz-size-2-5);
|
|
25
|
+
width: 100%;
|
|
26
|
+
border-top: 1px solid transparent;
|
|
27
27
|
}
|
|
28
28
|
.rz-scroll-area-scroll-bar--vertical {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
width: var(--rz-size-2-5);
|
|
30
|
+
height: 100%;
|
|
31
|
+
border-left: 1px solid transparent;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.rz-scroll-area-scroll-bar--vertical .rz-scroll-area-scroll-bar__thumb {
|
|
35
|
-
|
|
35
|
+
flex: 1;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.rz-scroll-area-scroll-bar__thumb {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
background-color: hsl(var(--rz-color-border));
|
|
40
|
+
position: relative;
|
|
41
|
+
border-radius: var(--raidus-full);
|
|
42
42
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive, type WithoutChild } from 'bits-ui';
|
|
3
|
+
import { Scrollbar } from './index.js';
|
|
4
|
+
import './scroll-area.css';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(null),
|
|
8
|
+
class: className,
|
|
9
|
+
orientation = 'vertical',
|
|
10
|
+
scrollbarXClasses = '',
|
|
11
|
+
scrollbarYClasses = '',
|
|
12
|
+
children,
|
|
13
|
+
...restProps
|
|
14
|
+
}: WithoutChild<ScrollAreaPrimitive.RootProps> & {
|
|
15
|
+
orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
|
|
16
|
+
scrollbarXClasses?: string | undefined;
|
|
17
|
+
scrollbarYClasses?: string | undefined;
|
|
18
|
+
} = $props();
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<ScrollAreaPrimitive.Root bind:ref {...restProps}>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
<ScrollAreaPrimitive.Viewport class="rz-scroll-area__viewport rz-scroll-area {className}">
|
|
23
|
+
{@render children?.()}
|
|
24
|
+
</ScrollAreaPrimitive.Viewport>
|
|
25
|
+
{#if orientation === 'vertical' || orientation === 'both'}
|
|
26
|
+
<Scrollbar orientation="vertical" class={scrollbarYClasses} />
|
|
27
|
+
{/if}
|
|
28
|
+
{#if orientation === 'horizontal' || orientation === 'both'}
|
|
29
|
+
<Scrollbar orientation="horizontal" class={scrollbarXClasses} />
|
|
30
|
+
{/if}
|
|
31
|
+
<ScrollAreaPrimitive.Corner />
|
|
32
32
|
</ScrollAreaPrimitive.Root>
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { Separator as SeparatorPrimitive } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
orientation = 'horizontal',
|
|
8
|
+
...restProps
|
|
9
|
+
}: SeparatorPrimitive.RootProps = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<SeparatorPrimitive.Root
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
bind:ref
|
|
14
|
+
class="rz-separator rz-separator--{orientation} {className}"
|
|
15
|
+
{orientation}
|
|
16
|
+
{...restProps}
|
|
17
17
|
/>
|
|
18
18
|
|
|
19
19
|
<style>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
:global {
|
|
21
|
+
.rz-separator {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
background-color: hsl(var(--rz-color-border));
|
|
24
|
+
}
|
|
25
|
+
.rz-separator--vertical {
|
|
26
|
+
width: 1px;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
.rz-separator--horizontal {
|
|
30
|
+
height: 1px;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
</style>
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { X } from '@lucide/svelte';
|
|
3
|
+
import { Dialog as SheetPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
|
4
|
+
import type { Snippet } from 'svelte';
|
|
5
|
+
import { SheetOverlay, SheetPortal, type Side } from './index.js';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
type Props = WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
|
|
8
|
+
side?: Side;
|
|
9
|
+
size?: 'default' | 'sm';
|
|
10
|
+
children: Snippet;
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
};
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
let {
|
|
15
|
+
ref = $bindable(null),
|
|
16
|
+
class: className,
|
|
17
|
+
side = 'right',
|
|
18
|
+
size = 'default',
|
|
19
|
+
children,
|
|
20
|
+
showCloseButton = true,
|
|
21
|
+
...restProps
|
|
22
|
+
}: Props = $props();
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<SheetPortal>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
<SheetOverlay />
|
|
27
|
+
<SheetPrimitive.Content
|
|
28
|
+
bind:ref
|
|
29
|
+
class="rz-sheet-content rz-sheet-content--{side} rz-sheet-content--{size} {className}"
|
|
30
|
+
{...restProps}
|
|
31
|
+
>
|
|
32
|
+
{@render children?.()}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
{#if showCloseButton}
|
|
35
|
+
<SheetPrimitive.Close class="rz-sheet-content__close">
|
|
36
|
+
<X size="15" />
|
|
37
|
+
<span class="rz-sr-only">Close</span>
|
|
38
|
+
</SheetPrimitive.Close>
|
|
39
|
+
{/if}
|
|
40
|
+
</SheetPrimitive.Content>
|
|
41
41
|
</SheetPortal>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
...restProps
|
|
8
|
+
}: SheetPrimitive.DescriptionProps = $props();
|
|
5
9
|
</script>
|
|
6
10
|
|
|
7
11
|
<SheetPrimitive.Description bind:ref class="rz-sheet-description {className}" {...restProps} />
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { WithElementRef } from 'bits-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type PrimitiveDivAttributes = WithElementRef<HTMLAttributes<HTMLDivElement>>;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
let {
|
|
8
|
+
ref = $bindable(null),
|
|
9
|
+
class: className,
|
|
10
|
+
children,
|
|
11
|
+
...restProps
|
|
12
|
+
}: PrimitiveDivAttributes = $props();
|
|
8
13
|
</script>
|
|
9
14
|
|
|
10
15
|
<div bind:this={ref} class="rz-sheet-footer {className}" {...restProps}>
|
|
11
|
-
|
|
16
|
+
{@render children?.()}
|
|
12
17
|
</div>
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { WithElementRef } from 'bits-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type PrimitiveDivAttributes = WithElementRef<HTMLAttributes<HTMLDivElement>>;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
let {
|
|
8
|
+
ref = $bindable(null),
|
|
9
|
+
class: className,
|
|
10
|
+
children,
|
|
11
|
+
...restProps
|
|
12
|
+
}: PrimitiveDivAttributes = $props();
|
|
8
13
|
</script>
|
|
9
14
|
|
|
10
15
|
<div bind:this={ref} class="rz-sheet-header {className}" {...restProps}>
|
|
11
|
-
|
|
16
|
+
{@render children?.()}
|
|
12
17
|
</div>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
...restProps
|
|
8
|
+
}: SheetPrimitive.OverlayProps = $props();
|
|
5
9
|
|
|
6
|
-
|
|
10
|
+
export { className as class };
|
|
7
11
|
</script>
|
|
8
12
|
|
|
9
13
|
<SheetPrimitive.Overlay bind:ref class="rz-sheet-overlay {className}" {...restProps} />
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'bits-ui';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
...restProps
|
|
8
|
+
}: SheetPrimitive.TitleProps = $props();
|
|
5
9
|
</script>
|
|
6
10
|
|
|
7
11
|
<SheetPrimitive.Title bind:ref class="rz-sheet-title {className}" {...restProps} />
|