@crisp-ui-kit/crisp 0.31.6 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +88 -0
- package/README.md +22 -0
- package/dist/accordion.css +13 -13
- package/dist/accordion.layered.css +23 -0
- package/dist/appshell.css +11 -11
- package/dist/appshell.layered.css +25 -0
- package/dist/authshell.css +23 -23
- package/dist/authshell.layered.css +59 -0
- package/dist/avatar.css +23 -23
- package/dist/avatar.layered.css +41 -0
- package/dist/avatargroup.css +2 -2
- package/dist/avatargroup.layered.css +7 -0
- package/dist/badge.css +31 -31
- package/dist/badge.layered.css +51 -0
- package/dist/barchart.css +15 -15
- package/dist/barchart.layered.css +25 -0
- package/dist/base.css +4 -4
- package/dist/board.css +20 -20
- package/dist/board.layered.css +34 -0
- package/dist/breadcrumb.css +8 -8
- package/dist/breadcrumb.layered.css +13 -0
- package/dist/bulkbar.css +13 -13
- package/dist/bulkbar.layered.css +23 -0
- package/dist/button.css +21 -21
- package/dist/button.layered.css +46 -0
- package/dist/callout.css +15 -15
- package/dist/callout.layered.css +18 -0
- package/dist/card.css +14 -14
- package/dist/card.layered.css +30 -0
- package/dist/checkbox.css +9 -9
- package/dist/checkbox.layered.css +21 -0
- package/dist/cjs/components/accordion/accordion.js +1 -1
- package/dist/cjs/components/accordion/accordion.recipe.js +10 -10
- package/dist/cjs/components/badge/badge.js +1 -1
- package/dist/cjs/components/badge/badge.recipe.js +1 -1
- package/dist/cjs/components/barchart/barchart.js +3 -3
- package/dist/cjs/components/barchart/barchart.recipe.js +14 -14
- package/dist/cjs/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/cjs/components/breadcrumb/breadcrumb.recipe.js +6 -6
- package/dist/cjs/components/bulkbar/bulkbar.js +2 -2
- package/dist/cjs/components/bulkbar/bulkbar.recipe.js +10 -10
- package/dist/cjs/components/callout/callout.js +1 -1
- package/dist/cjs/components/callout/callout.recipe.js +9 -9
- package/dist/cjs/components/card/card.js +3 -3
- package/dist/cjs/components/card/card.recipe.js +5 -5
- package/dist/cjs/components/columncalc/columncalc.js +1 -1
- package/dist/cjs/components/columncalc/columncalc.recipe.js +16 -9
- package/dist/cjs/components/contextmenu/contextmenu.js +4 -4
- package/dist/cjs/components/contextmenu/contextmenu.recipe.js +9 -9
- package/dist/cjs/components/datatable/datatable.js +32 -22
- package/dist/cjs/components/datatable/datatable.recipe.js +57 -57
- package/dist/cjs/components/datepicker/datepicker.js +12 -12
- package/dist/cjs/components/datepicker/datepicker.recipe.js +45 -45
- package/dist/cjs/components/datepickerfield/datepickerfield.js +2 -2
- package/dist/cjs/components/datepickerfield/datepickerfield.recipe.js +9 -9
- package/dist/cjs/components/dialog/dialog.js +5 -5
- package/dist/cjs/components/dialog/dialog.recipe.js +16 -16
- package/dist/cjs/components/donutchart/donutchart.js +1 -1
- package/dist/cjs/components/donutchart/donutchart.recipe.js +12 -12
- package/dist/cjs/components/drawer/drawer.js +3 -3
- package/dist/cjs/components/drawer/drawer.recipe.js +14 -14
- package/dist/cjs/components/emptystate/emptystate.js +1 -1
- package/dist/cjs/components/emptystate/emptystate.recipe.js +9 -9
- package/dist/cjs/components/fileupload/fileupload.js +3 -3
- package/dist/cjs/components/fileupload/fileupload.recipe.js +23 -23
- package/dist/cjs/components/formfield/formfield.js +1 -1
- package/dist/cjs/components/formfield/formfield.recipe.js +5 -5
- package/dist/cjs/components/input/input.js +1 -1
- package/dist/cjs/components/input/input.recipe.js +6 -6
- package/dist/cjs/components/linechart/linechart.js +4 -4
- package/dist/cjs/components/linechart/linechart.recipe.js +14 -14
- package/dist/cjs/components/menu/menu.js +6 -6
- package/dist/cjs/components/menu/menu.recipe.js +19 -19
- package/dist/cjs/components/multiselect/multiselect.js +5 -5
- package/dist/cjs/components/multiselect/multiselect.recipe.js +29 -29
- package/dist/cjs/components/popover/popover.js +1 -1
- package/dist/cjs/components/popover/popover.recipe.js +3 -3
- package/dist/cjs/components/progress/progress.js +2 -2
- package/dist/cjs/components/progress/progress.recipe.js +3 -3
- package/dist/cjs/components/quantitypicker/quantitypicker.js +2 -2
- package/dist/cjs/components/quantitypicker/quantitypicker.recipe.js +16 -16
- package/dist/cjs/components/radiogroup/radiogroup.js +1 -1
- package/dist/cjs/components/radiogroup/radiogroup.recipe.js +14 -14
- package/dist/cjs/components/resizablepanel/resizablepanel.js +3 -3
- package/dist/cjs/components/resizablepanel/resizablepanel.recipe.js +24 -24
- package/dist/cjs/components/segmented/segmented.js +4 -4
- package/dist/cjs/components/segmented/segmented.recipe.js +7 -7
- package/dist/cjs/components/select/select.js +3 -3
- package/dist/cjs/components/select/select.recipe.js +25 -25
- package/dist/cjs/components/slider/slider.js +2 -2
- package/dist/cjs/components/slider/slider.recipe.js +15 -15
- package/dist/cjs/components/stagebar/stagebar.js +1 -1
- package/dist/cjs/components/stagebar/stagebar.recipe.js +1 -1
- package/dist/cjs/components/statcard/statcard.js +1 -1
- package/dist/cjs/components/statcard/statcard.recipe.js +9 -9
- package/dist/cjs/components/switch/switch.js +1 -1
- package/dist/cjs/components/switch/switch.recipe.js +2 -2
- package/dist/cjs/components/table/table.js +1 -1
- package/dist/cjs/components/table/table.recipe.js +1 -1
- package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +65 -64
- package/dist/cjs/components/tabletoolbar/tabletoolbar.js +13 -13
- package/dist/cjs/components/tabs/tabs.js +4 -4
- package/dist/cjs/components/tabs/tabs.recipe.js +12 -12
- package/dist/cjs/components/textarea/textarea.js +2 -2
- package/dist/cjs/components/textarea/textarea.recipe.js +11 -11
- package/dist/cjs/components/toast/toast.js +4 -4
- package/dist/cjs/components/toast/toast.recipe.js +14 -14
- package/dist/cjs/components/wheelpicker/wheelpicker.js +2 -2
- package/dist/cjs/components/wheelpicker/wheelpicker.recipe.js +19 -19
- package/dist/cjs/core/namespace.js +17 -0
- package/dist/cjs/core/resolve.js +5 -3
- package/dist/cjs/product/appshell/appshell.js +2 -2
- package/dist/cjs/product/appshell/appshell.recipe.js +8 -8
- package/dist/cjs/product/authshell/authshell.js +1 -1
- package/dist/cjs/product/authshell/authshell.recipe.js +20 -20
- package/dist/cjs/product/board/board.js +3 -3
- package/dist/cjs/product/board/board.recipe.js +17 -17
- package/dist/cjs/product/command/command.js +3 -3
- package/dist/cjs/product/command/command.recipe.js +25 -25
- package/dist/cjs/product/entitycard/entitycard.js +1 -1
- package/dist/cjs/product/entitycard/entitycard.recipe.js +7 -7
- package/dist/cjs/product/flowcanvas/flowcanvas.js +5 -5
- package/dist/cjs/product/flowcanvas/flowcanvas.recipe.js +11 -11
- package/dist/cjs/product/inbox/inbox.js +1 -1
- package/dist/cjs/product/inbox/inbox.recipe.js +22 -22
- package/dist/cjs/product/listpage/listpage.js +3 -3
- package/dist/cjs/product/listpage/listpage.recipe.js +18 -18
- package/dist/cjs/product/navitem/navitem.js +1 -1
- package/dist/cjs/product/navitem/navitem.recipe.js +2 -2
- package/dist/cjs/product/onboarding/onboarding.js +1 -1
- package/dist/cjs/product/onboarding/onboarding.recipe.js +19 -19
- package/dist/cjs/product/recordpage/recordpage.js +24 -24
- package/dist/cjs/product/recordpage/recordpage.recipe.js +117 -117
- package/dist/cjs/product/recordpanel/recordpanel.js +4 -4
- package/dist/cjs/product/recordpanel/recordpanel.recipe.js +15 -15
- package/dist/cjs/product/recordstable/recordstable.js +48 -48
- package/dist/cjs/product/recordstable/recordstable.recipe.js +87 -87
- package/dist/cjs/product/recordstable/recordstable.tag.js +8 -8
- package/dist/cjs/product/richtext/richtext.js +4 -4
- package/dist/cjs/product/richtext/richtext.recipe.js +21 -21
- package/dist/cjs/product/settingssection/settingssection.js +1 -1
- package/dist/cjs/product/settingssection/settingssection.recipe.js +6 -6
- package/dist/cjs/product/settingsshell/settingsshell.js +1 -1
- package/dist/cjs/product/settingsshell/settingsshell.recipe.js +20 -20
- package/dist/cjs/product/sidebar/sidebar.js +2 -2
- package/dist/cjs/product/sidebar/sidebar.recipe.js +21 -21
- package/dist/cjs/product/tasklist/tasklist.js +2 -2
- package/dist/cjs/product/tasklist/tasklist.recipe.js +14 -14
- package/dist/cjs/product/trialbanner/trialbanner.js +1 -1
- package/dist/cjs/product/trialbanner/trialbanner.recipe.js +6 -6
- package/dist/cjs/product/viewtoggle/viewtoggle.js +1 -1
- package/dist/cjs/product/viewtoggle/viewtoggle.recipe.js +4 -4
- package/dist/cjs/tokens/contract.js +3 -2
- package/dist/columncalc.css +19 -12
- package/dist/columncalc.layered.css +35 -0
- package/dist/command.css +28 -28
- package/dist/command.layered.css +44 -0
- package/dist/contextmenu.css +12 -12
- package/dist/contextmenu.layered.css +22 -0
- package/dist/datatable.css +66 -66
- package/dist/datatable.layered.css +108 -0
- package/dist/datepicker.css +86 -86
- package/dist/datepicker.layered.css +179 -0
- package/dist/datepickerfield.css +19 -19
- package/dist/datepickerfield.layered.css +29 -0
- package/dist/dialog.css +19 -19
- package/dist/dialog.layered.css +29 -0
- package/dist/divider.css +2 -2
- package/dist/divider.layered.css +7 -0
- package/dist/donutchart.css +15 -15
- package/dist/donutchart.layered.css +26 -0
- package/dist/drawer.css +17 -17
- package/dist/drawer.layered.css +27 -0
- package/dist/emptystate.css +15 -15
- package/dist/emptystate.layered.css +22 -0
- package/dist/entitycard.css +14 -14
- package/dist/entitycard.layered.css +28 -0
- package/dist/esm/components/accordion/accordion.js +1 -1
- package/dist/esm/components/accordion/accordion.recipe.js +10 -10
- package/dist/esm/components/badge/badge.js +1 -1
- package/dist/esm/components/badge/badge.recipe.js +1 -1
- package/dist/esm/components/barchart/barchart.js +3 -3
- package/dist/esm/components/barchart/barchart.recipe.js +14 -14
- package/dist/esm/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/esm/components/breadcrumb/breadcrumb.recipe.js +6 -6
- package/dist/esm/components/bulkbar/bulkbar.js +2 -2
- package/dist/esm/components/bulkbar/bulkbar.recipe.js +10 -10
- package/dist/esm/components/callout/callout.js +1 -1
- package/dist/esm/components/callout/callout.recipe.js +9 -9
- package/dist/esm/components/card/card.js +3 -3
- package/dist/esm/components/card/card.recipe.js +5 -5
- package/dist/esm/components/columncalc/columncalc.js +1 -1
- package/dist/esm/components/columncalc/columncalc.recipe.js +16 -9
- package/dist/esm/components/contextmenu/contextmenu.js +4 -4
- package/dist/esm/components/contextmenu/contextmenu.recipe.js +9 -9
- package/dist/esm/components/datatable/datatable.js +32 -22
- package/dist/esm/components/datatable/datatable.recipe.js +57 -57
- package/dist/esm/components/datepicker/datepicker.js +12 -12
- package/dist/esm/components/datepicker/datepicker.recipe.js +45 -45
- package/dist/esm/components/datepickerfield/datepickerfield.js +2 -2
- package/dist/esm/components/datepickerfield/datepickerfield.recipe.js +9 -9
- package/dist/esm/components/dialog/dialog.js +5 -5
- package/dist/esm/components/dialog/dialog.recipe.js +16 -16
- package/dist/esm/components/donutchart/donutchart.js +1 -1
- package/dist/esm/components/donutchart/donutchart.recipe.js +12 -12
- package/dist/esm/components/drawer/drawer.js +3 -3
- package/dist/esm/components/drawer/drawer.recipe.js +14 -14
- package/dist/esm/components/emptystate/emptystate.js +1 -1
- package/dist/esm/components/emptystate/emptystate.recipe.js +9 -9
- package/dist/esm/components/fileupload/fileupload.js +3 -3
- package/dist/esm/components/fileupload/fileupload.recipe.js +23 -23
- package/dist/esm/components/formfield/formfield.js +1 -1
- package/dist/esm/components/formfield/formfield.recipe.js +5 -5
- package/dist/esm/components/input/input.js +1 -1
- package/dist/esm/components/input/input.recipe.js +6 -6
- package/dist/esm/components/linechart/linechart.js +4 -4
- package/dist/esm/components/linechart/linechart.recipe.js +14 -14
- package/dist/esm/components/menu/menu.js +6 -6
- package/dist/esm/components/menu/menu.recipe.js +19 -19
- package/dist/esm/components/multiselect/multiselect.js +5 -5
- package/dist/esm/components/multiselect/multiselect.recipe.js +29 -29
- package/dist/esm/components/popover/popover.js +1 -1
- package/dist/esm/components/popover/popover.recipe.js +3 -3
- package/dist/esm/components/progress/progress.js +2 -2
- package/dist/esm/components/progress/progress.recipe.js +3 -3
- package/dist/esm/components/quantitypicker/quantitypicker.js +2 -2
- package/dist/esm/components/quantitypicker/quantitypicker.recipe.js +16 -16
- package/dist/esm/components/radiogroup/radiogroup.js +1 -1
- package/dist/esm/components/radiogroup/radiogroup.recipe.js +14 -14
- package/dist/esm/components/resizablepanel/resizablepanel.js +3 -3
- package/dist/esm/components/resizablepanel/resizablepanel.recipe.js +24 -24
- package/dist/esm/components/segmented/segmented.js +4 -4
- package/dist/esm/components/segmented/segmented.recipe.js +7 -7
- package/dist/esm/components/select/select.js +3 -3
- package/dist/esm/components/select/select.recipe.js +25 -25
- package/dist/esm/components/slider/slider.js +2 -2
- package/dist/esm/components/slider/slider.recipe.js +15 -15
- package/dist/esm/components/stagebar/stagebar.js +1 -1
- package/dist/esm/components/stagebar/stagebar.recipe.js +1 -1
- package/dist/esm/components/statcard/statcard.js +1 -1
- package/dist/esm/components/statcard/statcard.recipe.js +9 -9
- package/dist/esm/components/switch/switch.js +1 -1
- package/dist/esm/components/switch/switch.recipe.js +2 -2
- package/dist/esm/components/table/table.js +1 -1
- package/dist/esm/components/table/table.recipe.js +1 -1
- package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +65 -64
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +13 -13
- package/dist/esm/components/tabs/tabs.js +4 -4
- package/dist/esm/components/tabs/tabs.recipe.js +12 -12
- package/dist/esm/components/textarea/textarea.js +2 -2
- package/dist/esm/components/textarea/textarea.recipe.js +11 -11
- package/dist/esm/components/toast/toast.js +4 -4
- package/dist/esm/components/toast/toast.recipe.js +14 -14
- package/dist/esm/components/wheelpicker/wheelpicker.js +2 -2
- package/dist/esm/components/wheelpicker/wheelpicker.recipe.js +19 -19
- package/dist/esm/core/namespace.js +14 -0
- package/dist/esm/core/resolve.js +5 -3
- package/dist/esm/product/appshell/appshell.js +2 -2
- package/dist/esm/product/appshell/appshell.recipe.js +8 -8
- package/dist/esm/product/authshell/authshell.js +1 -1
- package/dist/esm/product/authshell/authshell.recipe.js +20 -20
- package/dist/esm/product/board/board.js +3 -3
- package/dist/esm/product/board/board.recipe.js +17 -17
- package/dist/esm/product/command/command.js +3 -3
- package/dist/esm/product/command/command.recipe.js +25 -25
- package/dist/esm/product/entitycard/entitycard.js +1 -1
- package/dist/esm/product/entitycard/entitycard.recipe.js +7 -7
- package/dist/esm/product/flowcanvas/flowcanvas.js +5 -5
- package/dist/esm/product/flowcanvas/flowcanvas.recipe.js +11 -11
- package/dist/esm/product/inbox/inbox.js +1 -1
- package/dist/esm/product/inbox/inbox.recipe.js +22 -22
- package/dist/esm/product/listpage/listpage.js +3 -3
- package/dist/esm/product/listpage/listpage.recipe.js +18 -18
- package/dist/esm/product/navitem/navitem.js +1 -1
- package/dist/esm/product/navitem/navitem.recipe.js +2 -2
- package/dist/esm/product/onboarding/onboarding.js +1 -1
- package/dist/esm/product/onboarding/onboarding.recipe.js +19 -19
- package/dist/esm/product/recordpage/recordpage.js +24 -24
- package/dist/esm/product/recordpage/recordpage.recipe.js +117 -117
- package/dist/esm/product/recordpanel/recordpanel.js +4 -4
- package/dist/esm/product/recordpanel/recordpanel.recipe.js +15 -15
- package/dist/esm/product/recordstable/recordstable.js +48 -48
- package/dist/esm/product/recordstable/recordstable.recipe.js +87 -87
- package/dist/esm/product/recordstable/recordstable.tag.js +8 -8
- package/dist/esm/product/richtext/richtext.js +4 -4
- package/dist/esm/product/richtext/richtext.recipe.js +21 -21
- package/dist/esm/product/settingssection/settingssection.js +1 -1
- package/dist/esm/product/settingssection/settingssection.recipe.js +6 -6
- package/dist/esm/product/settingsshell/settingsshell.js +1 -1
- package/dist/esm/product/settingsshell/settingsshell.recipe.js +20 -20
- package/dist/esm/product/sidebar/sidebar.js +2 -2
- package/dist/esm/product/sidebar/sidebar.recipe.js +21 -21
- package/dist/esm/product/tasklist/tasklist.js +2 -2
- package/dist/esm/product/tasklist/tasklist.recipe.js +14 -14
- package/dist/esm/product/trialbanner/trialbanner.js +1 -1
- package/dist/esm/product/trialbanner/trialbanner.recipe.js +6 -6
- package/dist/esm/product/viewtoggle/viewtoggle.js +1 -1
- package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +4 -4
- package/dist/esm/tokens/contract.js +3 -2
- package/dist/fileupload.css +46 -46
- package/dist/fileupload.layered.css +91 -0
- package/dist/flowcanvas.css +13 -13
- package/dist/flowcanvas.layered.css +17 -0
- package/dist/formfield.css +7 -7
- package/dist/formfield.layered.css +10 -0
- package/dist/inbox.css +26 -26
- package/dist/inbox.layered.css +41 -0
- package/dist/input.css +17 -17
- package/dist/input.layered.css +45 -0
- package/dist/kbd.css +2 -2
- package/dist/kbd.layered.css +5 -0
- package/dist/linechart.css +14 -14
- package/dist/linechart.layered.css +17 -0
- package/dist/listpage.css +22 -22
- package/dist/listpage.layered.css +41 -0
- package/dist/menu.css +29 -29
- package/dist/menu.layered.css +48 -0
- package/dist/multiselect.css +42 -42
- package/dist/multiselect.layered.css +63 -0
- package/dist/navitem.css +14 -14
- package/dist/navitem.layered.css +25 -0
- package/dist/onboarding.css +24 -24
- package/dist/onboarding.layered.css +39 -0
- package/dist/popover.css +6 -6
- package/dist/popover.layered.css +16 -0
- package/dist/progress.css +7 -7
- package/dist/progress.layered.css +17 -0
- package/dist/quantitypicker.css +34 -34
- package/dist/quantitypicker.layered.css +80 -0
- package/dist/radiogroup.css +18 -18
- package/dist/radiogroup.layered.css +33 -0
- package/dist/recordpage.css +122 -122
- package/dist/recordpage.layered.css +153 -0
- package/dist/recordpanel.css +31 -31
- package/dist/recordpanel.layered.css +50 -0
- package/dist/recordstable.css +162 -162
- package/dist/recordstable.layered.css +222 -0
- package/dist/resizablepanel.css +26 -26
- package/dist/resizablepanel.layered.css +55 -0
- package/dist/richtext.css +24 -24
- package/dist/richtext.layered.css +38 -0
- package/dist/segmented.css +10 -10
- package/dist/segmented.layered.css +20 -0
- package/dist/select.css +43 -43
- package/dist/select.layered.css +72 -0
- package/dist/settingssection.css +8 -8
- package/dist/settingssection.layered.css +11 -0
- package/dist/settingsshell.css +23 -23
- package/dist/settingsshell.layered.css +44 -0
- package/dist/sidebar.css +27 -27
- package/dist/sidebar.layered.css +40 -0
- package/dist/skeleton.css +4 -4
- package/dist/skeleton.layered.css +15 -0
- package/dist/slider.css +23 -23
- package/dist/slider.layered.css +58 -0
- package/dist/spinner.css +3 -3
- package/dist/spinner.layered.css +14 -0
- package/dist/stagebar.css +4 -4
- package/dist/stagebar.layered.css +14 -0
- package/dist/statcard.css +14 -14
- package/dist/statcard.layered.css +21 -0
- package/dist/styles.css +1816 -1725
- package/dist/styles.layered.css +2932 -0
- package/dist/switch.css +7 -7
- package/dist/switch.layered.css +22 -0
- package/dist/table.css +16 -16
- package/dist/table.layered.css +36 -0
- package/dist/tabletoolbar.css +67 -67
- package/dist/tabletoolbar.layered.css +80 -0
- package/dist/tabs.css +15 -15
- package/dist/tabs.layered.css +29 -0
- package/dist/tasklist.css +17 -17
- package/dist/tasklist.layered.css +34 -0
- package/dist/textarea.css +18 -18
- package/dist/textarea.layered.css +42 -0
- package/dist/toast.css +17 -17
- package/dist/toast.layered.css +27 -0
- package/dist/tokens.css +199 -115
- package/dist/tooltip.css +3 -3
- package/dist/tooltip.layered.css +13 -0
- package/dist/trialbanner.css +13 -13
- package/dist/trialbanner.layered.css +28 -0
- package/dist/types/core/namespace.d.ts +2 -0
- package/dist/viewtoggle.css +10 -10
- package/dist/viewtoggle.layered.css +23 -0
- package/dist/wheelpicker.css +29 -29
- package/dist/wheelpicker.layered.css +70 -0
- package/licenses/Apache-2.0.txt +201 -0
- package/package.json +5 -2
|
@@ -8,25 +8,25 @@ const config = defineRecipe({
|
|
|
8
8
|
base: `display: flex; flex-direction: column; box-sizing: border-box; font-family: ${c.font.sans};
|
|
9
9
|
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
10
10
|
|
|
11
|
-
& .tasklist-group { display: flex; align-items: center; gap: ${c.space["1.5"]}; height: 36px; padding: 0 ${c.space["2"]}; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; }
|
|
12
|
-
& .tasklist-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); font-size: ${c.text.xs}; color: ${c.fgMuted}; }
|
|
11
|
+
& .crisp-tasklist-group { display: flex; align-items: center; gap: ${c.space["1.5"]}; height: 36px; padding: 0 ${c.space["2"]}; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; }
|
|
12
|
+
& .crisp-tasklist-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); font-size: ${c.text.xs}; color: ${c.fgMuted}; }
|
|
13
13
|
|
|
14
|
-
& .tasklist-row { display: flex; align-items: center; gap: ${c.space["2.5"]}; height: 52px; padding: 0 ${c.space["2"]}; border-top: 1px solid ${c.borderSubtle}; }
|
|
15
|
-
& .tasklist-row:first-child { border-top: none; }
|
|
14
|
+
& .crisp-tasklist-row { display: flex; align-items: center; gap: ${c.space["2.5"]}; height: 52px; padding: 0 ${c.space["2"]}; border-top: 1px solid ${c.borderSubtle}; }
|
|
15
|
+
& .crisp-tasklist-row:first-child { border-top: none; }
|
|
16
16
|
|
|
17
|
-
& .tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: ${c.radius.full}; background: ${c.bgSurface}; box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
18
|
-
& .tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 30%, transparent); }
|
|
19
|
-
& .tasklist-check:checked { background: ${c.bgBrandSolid} center / 10px no-repeat; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E"); }
|
|
20
|
-
& .tasklist-check:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }
|
|
17
|
+
& .crisp-tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: ${c.radius.full}; background: ${c.bgSurface}; box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
18
|
+
& .crisp-tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 30%, transparent); }
|
|
19
|
+
& .crisp-tasklist-check:checked { background: ${c.bgBrandSolid} center / 10px no-repeat; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E"); }
|
|
20
|
+
& .crisp-tasklist-check:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }
|
|
21
21
|
|
|
22
|
-
& .tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }
|
|
23
|
-
& .tasklist-row[data-done] .tasklist-title { color: ${c.fgMuted}; text-decoration: line-through; }
|
|
22
|
+
& .crisp-tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }
|
|
23
|
+
& .crisp-tasklist-row[data-done] .crisp-tasklist-title { color: ${c.fgMuted}; text-decoration: line-through; }
|
|
24
24
|
|
|
25
|
-
& .tasklist-meta { display: inline-flex; align-items: center; gap: ${c.space["3"]}; flex-shrink: 0; }
|
|
26
|
-
& .tasklist-due { font-size: ${c.text.lg}; color: ${c.fgMuted}; white-space: nowrap; }
|
|
27
|
-
& .tasklist-due[data-overdue] { color: ${c.bgDanger}; }
|
|
25
|
+
& .crisp-tasklist-meta { display: inline-flex; align-items: center; gap: ${c.space["3"]}; flex-shrink: 0; }
|
|
26
|
+
& .crisp-tasklist-due { font-size: ${c.text.lg}; color: ${c.fgMuted}; white-space: nowrap; }
|
|
27
|
+
& .crisp-tasklist-due[data-overdue] { color: ${c.bgDanger}; }
|
|
28
28
|
|
|
29
|
-
& .tasklist-empty { padding: ${c.space["4"]} ${c.space["2"]}; text-align: center; font-size: ${c.text.md}; color: ${c.fgMuted}; }`,
|
|
29
|
+
& .crisp-tasklist-empty { padding: ${c.space["4"]} ${c.space["2"]}; text-align: center; font-size: ${c.text.md}; color: ${c.fgMuted}; }`,
|
|
30
30
|
variants: {},
|
|
31
31
|
defaultVariants: {},
|
|
32
32
|
compoundVariants: [],
|
|
@@ -5,6 +5,6 @@ import { trialbannerRecipe } from "./trialbanner.recipe.js";
|
|
|
5
5
|
* Icon + message + an optional small action pill (soft-glow outlined button).
|
|
6
6
|
*/
|
|
7
7
|
export function TrialBanner({ icon, children, action, onAction, tone = "neutral", className, ...rest }) {
|
|
8
|
-
return (_jsxs("div", { className: trialbannerRecipe({ className }), ...rest, "data-tone": tone === "neutral" ? undefined : tone, children: [icon != null && _jsx("span", { className: "trialbanner-icon", children: icon }), _jsx("span", { className: "trialbanner-msg", children: children }), action != null && (_jsx("button", { type: "button", className: "trialbanner-action", onClick: onAction, children: action }))] }));
|
|
8
|
+
return (_jsxs("div", { className: trialbannerRecipe({ className }), ...rest, "data-tone": tone === "neutral" ? undefined : tone, children: [icon != null && _jsx("span", { className: "crisp-trialbanner-icon", children: icon }), _jsx("span", { className: "crisp-trialbanner-msg", children: children }), action != null && (_jsx("button", { type: "button", className: "crisp-trialbanner-action", onClick: onAction, children: action }))] }));
|
|
9
9
|
}
|
|
10
10
|
TrialBanner.displayName = "TrialBanner";
|
|
@@ -10,17 +10,17 @@ const config = defineRecipe({
|
|
|
10
10
|
font-size: ${c.text.lg}; color: ${c.fgPrimary};
|
|
11
11
|
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
12
12
|
|
|
13
|
-
& .trialbanner-icon { display: inline-flex; flex-shrink: 0; color: ${c.fgMuted}; }
|
|
14
|
-
& .trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
15
|
-
& .trialbanner-action { display: inline-flex; align-items: center; gap: ${c.space["1"]}; height: 20px; flex-shrink: 0;
|
|
13
|
+
& .crisp-trialbanner-icon { display: inline-flex; flex-shrink: 0; color: ${c.fgMuted}; }
|
|
14
|
+
& .crisp-trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
15
|
+
& .crisp-trialbanner-action { display: inline-flex; align-items: center; gap: ${c.space["1"]}; height: 20px; flex-shrink: 0;
|
|
16
16
|
padding: 0 ${c.space["1.5"]}; margin: 0; border: none; border-radius: ${c.radius.sm}; background: ${c.bgSurface};
|
|
17
17
|
box-shadow: ${e.fieldNoRing};
|
|
18
18
|
font-family: inherit; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary};
|
|
19
19
|
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
20
|
-
& .trialbanner-action:hover { background: ${c.bgRaised}; }
|
|
20
|
+
& .crisp-trialbanner-action:hover { background: ${c.bgRaised}; }
|
|
21
21
|
|
|
22
|
-
&[data-tone="warning"] .trialbanner-icon { color: ${c.bgWarning}; }
|
|
23
|
-
&[data-tone="danger"] .trialbanner-icon { color: ${c.bgDanger}; }`,
|
|
22
|
+
&[data-tone="warning"] .crisp-trialbanner-icon { color: ${c.bgWarning}; }
|
|
23
|
+
&[data-tone="danger"] .crisp-trialbanner-icon { color: ${c.bgDanger}; }`,
|
|
24
24
|
variants: {},
|
|
25
25
|
defaultVariants: {},
|
|
26
26
|
compoundVariants: [],
|
|
@@ -17,6 +17,6 @@ export function ViewToggle({ options, value: valueProp, defaultValue, onValueCha
|
|
|
17
17
|
onValueChange?.(next);
|
|
18
18
|
onChange?.(next);
|
|
19
19
|
};
|
|
20
|
-
return (_jsx("div", { className: viewtoggleRecipe({ className }), ...rest, role: "group", "aria-label": ariaLabel, children: options.map((o) => (_jsx("button", { type: "button", className: "viewtoggle-tile", "aria-pressed": o.value === value, "aria-label": o.label, title: o.label, "data-active": o.value === value ? "" : undefined, onClick: () => pick(o.value), children: o.icon }, o.value))) }));
|
|
20
|
+
return (_jsx("div", { className: viewtoggleRecipe({ className }), ...rest, role: "group", "aria-label": ariaLabel, children: options.map((o) => (_jsx("button", { type: "button", className: "crisp-viewtoggle-tile", "aria-pressed": o.value === value, "aria-label": o.label, title: o.label, "data-active": o.value === value ? "" : undefined, onClick: () => pick(o.value), children: o.icon }, o.value))) }));
|
|
21
21
|
}
|
|
22
22
|
ViewToggle.displayName = "ViewToggle";
|
|
@@ -9,13 +9,13 @@ const config = defineRecipe({
|
|
|
9
9
|
border-radius: ${c.radius.lg}; background: color-mix(in srgb, ${c.fgPrimary} 5%, transparent);
|
|
10
10
|
font-family: ${c.font.sans};
|
|
11
11
|
|
|
12
|
-
& .viewtoggle-tile { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
|
|
12
|
+
& .crisp-viewtoggle-tile { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
|
|
13
13
|
padding: 0; margin: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted};
|
|
14
14
|
font-family: inherit; cursor: pointer; transition: background-color .12s, color .12s, box-shadow .12s; }
|
|
15
|
-
& .viewtoggle-tile:hover { color: ${c.fgPrimary}; }
|
|
16
|
-
& .viewtoggle-tile[data-active] { background: ${c.bgTileActive}; color: ${c.fgPrimary};
|
|
15
|
+
& .crisp-viewtoggle-tile:hover { color: ${c.fgPrimary}; }
|
|
16
|
+
& .crisp-viewtoggle-tile[data-active] { background: ${c.bgTileActive}; color: ${c.fgPrimary};
|
|
17
17
|
box-shadow: 0 1px 2px -1px ${c.shadowTileActive}; }
|
|
18
|
-
& .viewtoggle-tile:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }`,
|
|
18
|
+
& .crisp-viewtoggle-tile:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }`,
|
|
19
19
|
variants: {},
|
|
20
20
|
defaultVariants: {},
|
|
21
21
|
compoundVariants: [],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { VAR_PREFIX } from "../core/namespace.js";
|
|
1
2
|
import { font as fontScale, radius as radiusScale, size as sizeScale, space as spaceScale, text as textScale, weight as weightScale, } from "./scale.js";
|
|
2
3
|
import { semantic } from "./semantic.js";
|
|
3
4
|
const kebab = (s) => s.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
|
4
|
-
const toVar = (key) => `var(--${kebab(key)})`;
|
|
5
|
+
const toVar = (key) => `var(--${VAR_PREFIX}${kebab(key)})`;
|
|
5
6
|
// dots aren't valid in a CSS custom-property name → "2.5" becomes "2-5"
|
|
6
|
-
const scaleVar = (prefix, key) => `var(--${prefix}-${key.replace(/\./g, "-")})`;
|
|
7
|
+
const scaleVar = (prefix, key) => `var(--${VAR_PREFIX}${prefix}-${key.replace(/\./g, "-")})`;
|
|
7
8
|
const mapScale = (prefix, scale) => Object.fromEntries(Object.keys(scale).map((k) => [k, scaleVar(prefix, k)]));
|
|
8
9
|
const colors = Object.fromEntries(Object.keys(semantic).map((k) => [k, toVar(k)]));
|
|
9
10
|
// contract = color tokens (theme-flipping) + the dimensional scale
|
package/dist/fileupload.css
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
.fileupload {
|
|
1
|
+
.crisp-fileupload {
|
|
2
2
|
|
|
3
|
-
display: flex; flex-direction: column; gap: var(--space-2);
|
|
4
|
-
font-family: var(--font-sans); min-width: 0;
|
|
3
|
+
display: flex; flex-direction: column; gap: var(--crisp-space-2);
|
|
4
|
+
font-family: var(--crisp-font-sans); min-width: 0;
|
|
5
5
|
|
|
6
|
-
& .fileupload-zone {
|
|
6
|
+
& .crisp-fileupload-zone {
|
|
7
7
|
box-sizing: border-box; position: relative;
|
|
8
8
|
display: flex; flex-direction: column; align-items: center;
|
|
9
|
-
justify-content: center; gap: var(--space-1);
|
|
10
|
-
width: 100%; padding: var(--space-6) var(--space-4);
|
|
11
|
-
border: 1px dashed var(--border-default); border-radius: var(--radius-md);
|
|
9
|
+
justify-content: center; gap: var(--crisp-space-1);
|
|
10
|
+
width: 100%; padding: var(--crisp-space-6) var(--crisp-space-4);
|
|
11
|
+
border: 1px dashed var(--crisp-border-default); border-radius: var(--crisp-radius-md);
|
|
12
12
|
background: transparent; cursor: pointer; text-align: center;
|
|
13
13
|
font-family: inherit;
|
|
14
14
|
transition: background-color .12s, border-color .12s;
|
|
15
15
|
outline: 2px solid transparent; outline-offset: -2px;
|
|
16
16
|
}
|
|
17
|
-
& .fileupload-zone:hover { background: var(--bg-raised); }
|
|
18
|
-
& .fileupload-zone:focus-visible { outline-color: var(--stroke-focus-ring); }
|
|
19
|
-
& .fileupload-zone[data-dragging] {
|
|
20
|
-
border-color: var(--bg-brand-solid);
|
|
21
|
-
background: color-mix(in srgb, var(--bg-brand-solid) 6%, transparent);
|
|
17
|
+
& .crisp-fileupload-zone:hover { background: var(--crisp-bg-raised); }
|
|
18
|
+
& .crisp-fileupload-zone:focus-visible { outline-color: var(--crisp-stroke-focus-ring); }
|
|
19
|
+
& .crisp-fileupload-zone[data-dragging] {
|
|
20
|
+
border-color: var(--crisp-bg-brand-solid);
|
|
21
|
+
background: color-mix(in srgb, var(--crisp-bg-brand-solid) 6%, transparent);
|
|
22
22
|
}
|
|
23
|
-
& .fileupload-zone[data-disabled] { opacity: .5; cursor: not-allowed; }
|
|
24
|
-
& .fileupload-zone[data-invalid] { border-color: var(--bg-danger); }
|
|
23
|
+
& .crisp-fileupload-zone[data-disabled] { opacity: .5; cursor: not-allowed; }
|
|
24
|
+
& .crisp-fileupload-zone[data-invalid] { border-color: var(--crisp-bg-danger); }
|
|
25
25
|
|
|
26
26
|
/* "No files" 16/20 weight 600 */
|
|
27
|
-
& .fileupload-title {
|
|
28
|
-
color: var(--fg-primary); font-size: var(--text-xl); line-height: 20px;
|
|
29
|
-
font-weight: var(--weight-semibold);
|
|
27
|
+
& .crisp-fileupload-title {
|
|
28
|
+
color: var(--crisp-fg-primary); font-size: var(--crisp-text-xl); line-height: 20px;
|
|
29
|
+
font-weight: var(--crisp-weight-semibold);
|
|
30
30
|
}
|
|
31
31
|
/* The hint line, 14/20 weight 500 at 63% of the foreground */
|
|
32
|
-
& .fileupload-hint {
|
|
33
|
-
color: color-mix(in srgb, var(--fg-primary) 63%, transparent);
|
|
34
|
-
font-size: var(--text-lg); line-height: 20px;
|
|
35
|
-
font-weight: var(--weight-medium);
|
|
32
|
+
& .crisp-fileupload-hint {
|
|
33
|
+
color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent);
|
|
34
|
+
font-size: var(--crisp-text-lg); line-height: 20px;
|
|
35
|
+
font-weight: var(--crisp-weight-medium);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
& .fileupload-input {
|
|
38
|
+
& .crisp-fileupload-input {
|
|
39
39
|
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
40
40
|
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
& .fileupload-list { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
|
43
|
+
& .crisp-fileupload-list { display: flex; flex-direction: column; gap: var(--crisp-space-1); margin: 0; padding: 0; list-style: none; }
|
|
44
44
|
/* the row height crisp measured for a data-grid row */
|
|
45
|
-
& .fileupload-item {
|
|
46
|
-
display: flex; align-items: center; gap: var(--space-2);
|
|
47
|
-
min-height: var(--size-tableRow); padding: 0 var(--space-2);
|
|
48
|
-
border-radius: var(--radius-md); background: var(--bg-raised);
|
|
49
|
-
font-size: var(--text-lg); line-height: 20px; color: var(--fg-primary);
|
|
45
|
+
& .crisp-fileupload-item {
|
|
46
|
+
display: flex; align-items: center; gap: var(--crisp-space-2);
|
|
47
|
+
min-height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2);
|
|
48
|
+
border-radius: var(--crisp-radius-md); background: var(--crisp-bg-raised);
|
|
49
|
+
font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary);
|
|
50
50
|
}
|
|
51
|
-
& .fileupload-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
52
|
-
& .fileupload-item-size { flex-shrink: 0; color: var(--fg-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
|
|
53
|
-
& .fileupload-item[data-status="error"] { color: var(--bg-danger); }
|
|
54
|
-
& .fileupload-item[data-status="error"] .fileupload-item-size { color: var(--bg-danger); }
|
|
51
|
+
& .crisp-fileupload-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
52
|
+
& .crisp-fileupload-item-size { flex-shrink: 0; color: var(--crisp-fg-muted); font-size: var(--crisp-text-sm); font-variant-numeric: tabular-nums; }
|
|
53
|
+
& .crisp-fileupload-item[data-status="error"] { color: var(--crisp-bg-danger); }
|
|
54
|
+
& .crisp-fileupload-item[data-status="error"] .crisp-fileupload-item-size { color: var(--crisp-bg-danger); }
|
|
55
55
|
|
|
56
56
|
/* progress track, reusing the measured Progress geometry */
|
|
57
|
-
& .fileupload-progress {
|
|
58
|
-
flex-shrink: 0; width: 64px; height: 4px; border-radius: var(--radius-full);
|
|
59
|
-
background: var(--bg-neutral-weak); overflow: hidden;
|
|
57
|
+
& .crisp-fileupload-progress {
|
|
58
|
+
flex-shrink: 0; width: 64px; height: 4px; border-radius: var(--crisp-radius-full);
|
|
59
|
+
background: var(--crisp-bg-neutral-weak); overflow: hidden;
|
|
60
60
|
}
|
|
61
|
-
& .fileupload-progress-fill { height: 100%; background: var(--bg-brand-solid); transition: width .2s ease; }
|
|
61
|
+
& .crisp-fileupload-progress-fill { height: 100%; background: var(--crisp-bg-brand-solid); transition: width .2s ease; }
|
|
62
62
|
|
|
63
|
-
& .fileupload-remove {
|
|
63
|
+
& .crisp-fileupload-remove {
|
|
64
64
|
display: inline-flex; align-items: center; justify-content: center;
|
|
65
|
-
flex-shrink: 0; width: var(--size-icon); height: var(--size-icon);
|
|
66
|
-
padding: 0; border: none; border-radius: var(--radius-sm);
|
|
67
|
-
background: transparent; color: var(--fg-muted); cursor: pointer;
|
|
65
|
+
flex-shrink: 0; width: var(--crisp-size-icon); height: var(--crisp-size-icon);
|
|
66
|
+
padding: 0; border: none; border-radius: var(--crisp-radius-sm);
|
|
67
|
+
background: transparent; color: var(--crisp-fg-muted); cursor: pointer;
|
|
68
68
|
font-family: inherit;
|
|
69
69
|
outline: 2px solid transparent; outline-offset: -2px;
|
|
70
70
|
}
|
|
71
|
-
& .fileupload-remove:hover { color: var(--fg-primary); }
|
|
72
|
-
& .fileupload-remove:focus-visible { outline-color: var(--stroke-focus-ring); }
|
|
71
|
+
& .crisp-fileupload-remove:hover { color: var(--crisp-fg-primary); }
|
|
72
|
+
& .crisp-fileupload-remove:focus-visible { outline-color: var(--crisp-stroke-focus-ring); }
|
|
73
73
|
|
|
74
|
-
& .fileupload-errors { display: flex; flex-direction: column; gap: var(--space-0-5); margin: 0; padding: 0; list-style: none; }
|
|
74
|
+
& .crisp-fileupload-errors { display: flex; flex-direction: column; gap: var(--crisp-space-0-5); margin: 0; padding: 0; list-style: none; }
|
|
75
75
|
/* out of flow while empty, so the always-mounted live region costs no
|
|
76
76
|
layout: display:none would take it out of the accessibility tree, which
|
|
77
77
|
is the one thing it exists to be in */
|
|
78
|
-
& .fileupload-errors:empty { position: absolute; }
|
|
79
|
-
& .fileupload-error { color: var(--bg-danger); font-size: var(--text-md); line-height: 18px; }
|
|
78
|
+
& .crisp-fileupload-errors:empty { position: absolute; }
|
|
79
|
+
& .crisp-fileupload-error { color: var(--crisp-bg-danger); font-size: var(--crisp-text-md); line-height: 18px; }
|
|
80
80
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
@media (prefers-reduced-motion: reduce) {
|
|
84
|
-
.fileupload, .fileupload * {
|
|
84
|
+
.crisp-fileupload, .crisp-fileupload * {
|
|
85
85
|
animation-duration: 0.01ms !important;
|
|
86
86
|
animation-iteration-count: 1 !important;
|
|
87
87
|
transition-duration: 0.01ms !important;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@layer crisp-components {
|
|
2
|
+
.crisp-fileupload {
|
|
3
|
+
|
|
4
|
+
display: flex; flex-direction: column; gap: var(--crisp-space-2);
|
|
5
|
+
font-family: var(--crisp-font-sans); min-width: 0;
|
|
6
|
+
|
|
7
|
+
& .crisp-fileupload-zone {
|
|
8
|
+
box-sizing: border-box; position: relative;
|
|
9
|
+
display: flex; flex-direction: column; align-items: center;
|
|
10
|
+
justify-content: center; gap: var(--crisp-space-1);
|
|
11
|
+
width: 100%; padding: var(--crisp-space-6) var(--crisp-space-4);
|
|
12
|
+
border: 1px dashed var(--crisp-border-default); border-radius: var(--crisp-radius-md);
|
|
13
|
+
background: transparent; cursor: pointer; text-align: center;
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
transition: background-color .12s, border-color .12s;
|
|
16
|
+
outline: 2px solid transparent; outline-offset: -2px;
|
|
17
|
+
}
|
|
18
|
+
& .crisp-fileupload-zone:hover { background: var(--crisp-bg-raised); }
|
|
19
|
+
& .crisp-fileupload-zone:focus-visible { outline-color: var(--crisp-stroke-focus-ring); }
|
|
20
|
+
& .crisp-fileupload-zone[data-dragging] {
|
|
21
|
+
border-color: var(--crisp-bg-brand-solid);
|
|
22
|
+
background: color-mix(in srgb, var(--crisp-bg-brand-solid) 6%, transparent);
|
|
23
|
+
}
|
|
24
|
+
& .crisp-fileupload-zone[data-disabled] { opacity: .5; cursor: not-allowed; }
|
|
25
|
+
& .crisp-fileupload-zone[data-invalid] { border-color: var(--crisp-bg-danger); }
|
|
26
|
+
|
|
27
|
+
/* "No files" 16/20 weight 600 */
|
|
28
|
+
& .crisp-fileupload-title {
|
|
29
|
+
color: var(--crisp-fg-primary); font-size: var(--crisp-text-xl); line-height: 20px;
|
|
30
|
+
font-weight: var(--crisp-weight-semibold);
|
|
31
|
+
}
|
|
32
|
+
/* The hint line, 14/20 weight 500 at 63% of the foreground */
|
|
33
|
+
& .crisp-fileupload-hint {
|
|
34
|
+
color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent);
|
|
35
|
+
font-size: var(--crisp-text-lg); line-height: 20px;
|
|
36
|
+
font-weight: var(--crisp-weight-medium);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
& .crisp-fileupload-input {
|
|
40
|
+
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
41
|
+
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .crisp-fileupload-list { display: flex; flex-direction: column; gap: var(--crisp-space-1); margin: 0; padding: 0; list-style: none; }
|
|
45
|
+
/* the row height crisp measured for a data-grid row */
|
|
46
|
+
& .crisp-fileupload-item {
|
|
47
|
+
display: flex; align-items: center; gap: var(--crisp-space-2);
|
|
48
|
+
min-height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2);
|
|
49
|
+
border-radius: var(--crisp-radius-md); background: var(--crisp-bg-raised);
|
|
50
|
+
font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary);
|
|
51
|
+
}
|
|
52
|
+
& .crisp-fileupload-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
53
|
+
& .crisp-fileupload-item-size { flex-shrink: 0; color: var(--crisp-fg-muted); font-size: var(--crisp-text-sm); font-variant-numeric: tabular-nums; }
|
|
54
|
+
& .crisp-fileupload-item[data-status="error"] { color: var(--crisp-bg-danger); }
|
|
55
|
+
& .crisp-fileupload-item[data-status="error"] .crisp-fileupload-item-size { color: var(--crisp-bg-danger); }
|
|
56
|
+
|
|
57
|
+
/* progress track, reusing the measured Progress geometry */
|
|
58
|
+
& .crisp-fileupload-progress {
|
|
59
|
+
flex-shrink: 0; width: 64px; height: 4px; border-radius: var(--crisp-radius-full);
|
|
60
|
+
background: var(--crisp-bg-neutral-weak); overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
& .crisp-fileupload-progress-fill { height: 100%; background: var(--crisp-bg-brand-solid); transition: width .2s ease; }
|
|
63
|
+
|
|
64
|
+
& .crisp-fileupload-remove {
|
|
65
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
66
|
+
flex-shrink: 0; width: var(--crisp-size-icon); height: var(--crisp-size-icon);
|
|
67
|
+
padding: 0; border: none; border-radius: var(--crisp-radius-sm);
|
|
68
|
+
background: transparent; color: var(--crisp-fg-muted); cursor: pointer;
|
|
69
|
+
font-family: inherit;
|
|
70
|
+
outline: 2px solid transparent; outline-offset: -2px;
|
|
71
|
+
}
|
|
72
|
+
& .crisp-fileupload-remove:hover { color: var(--crisp-fg-primary); }
|
|
73
|
+
& .crisp-fileupload-remove:focus-visible { outline-color: var(--crisp-stroke-focus-ring); }
|
|
74
|
+
|
|
75
|
+
& .crisp-fileupload-errors { display: flex; flex-direction: column; gap: var(--crisp-space-0-5); margin: 0; padding: 0; list-style: none; }
|
|
76
|
+
/* out of flow while empty, so the always-mounted live region costs no
|
|
77
|
+
layout: display:none would take it out of the accessibility tree, which
|
|
78
|
+
is the one thing it exists to be in */
|
|
79
|
+
& .crisp-fileupload-errors:empty { position: absolute; }
|
|
80
|
+
& .crisp-fileupload-error { color: var(--crisp-bg-danger); font-size: var(--crisp-text-md); line-height: 18px; }
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (prefers-reduced-motion: reduce) {
|
|
85
|
+
.crisp-fileupload, .crisp-fileupload * {
|
|
86
|
+
animation-duration: 0.01ms !important;
|
|
87
|
+
animation-iteration-count: 1 !important;
|
|
88
|
+
transition-duration: 0.01ms !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/dist/flowcanvas.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.flowcanvas {
|
|
2
|
-
position: relative; overflow: hidden; box-sizing: border-box; width: 100%; height: 100%; background-color: var(--bg-surface); background-image: radial-gradient(circle, color-mix(in srgb, var(--fg-primary) 14%, transparent) 1px, transparent 1px); font-family: var(--font-sans); cursor: grab; touch-action: none; user-select: none;
|
|
1
|
+
.crisp-flowcanvas {
|
|
2
|
+
position: relative; overflow: hidden; box-sizing: border-box; width: 100%; height: 100%; background-color: var(--crisp-bg-surface); background-image: radial-gradient(circle, color-mix(in srgb, var(--crisp-fg-primary) 14%, transparent) 1px, transparent 1px); font-family: var(--crisp-font-sans); cursor: grab; touch-action: none; user-select: none;
|
|
3
3
|
&[data-panning] { cursor: grabbing; }
|
|
4
|
-
& .flowcanvas-viewport { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
|
|
5
|
-
& .flowcanvas-edges { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
|
|
6
|
-
& .flowcanvas-edge { fill: none; stroke: color-mix(in srgb, var(--fg-primary) 28%, transparent); stroke-width: 1.5; }
|
|
7
|
-
& .flowcanvas-edge-dot { fill: var(--bg-brand-solid); }
|
|
8
|
-
& .flowcanvas-node { position: absolute; cursor: grab; }
|
|
9
|
-
& .flowcanvas-node[data-dragging] { cursor: grabbing; z-index: 10; }
|
|
10
|
-
& .flowcanvas-toolbar { position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-lg); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border-default), 0 4px 14px -4px rgba(28,40,64,0.16); }
|
|
11
|
-
& .flowcanvas-tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); height: 30px; min-width: 30px; padding: 0 var(--space-2); margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; }
|
|
12
|
-
& .flowcanvas-tool:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); color: var(--fg-primary); }
|
|
13
|
-
& .flowcanvas-tool-zoom { min-width: 48px; }
|
|
14
|
-
& .flowcanvas-tool-sep { width: 1px; height: 18px; background: var(--border-subtle); }
|
|
4
|
+
& .crisp-flowcanvas-viewport { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
|
|
5
|
+
& .crisp-flowcanvas-edges { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
|
|
6
|
+
& .crisp-flowcanvas-edge { fill: none; stroke: color-mix(in srgb, var(--crisp-fg-primary) 28%, transparent); stroke-width: 1.5; }
|
|
7
|
+
& .crisp-flowcanvas-edge-dot { fill: var(--crisp-bg-brand-solid); }
|
|
8
|
+
& .crisp-flowcanvas-node { position: absolute; cursor: grab; }
|
|
9
|
+
& .crisp-flowcanvas-node[data-dragging] { cursor: grabbing; z-index: 10; }
|
|
10
|
+
& .crisp-flowcanvas-toolbar { position: absolute; bottom: var(--crisp-space-4); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--crisp-space-1); padding: var(--crisp-space-1); border-radius: var(--crisp-radius-lg); background: var(--crisp-bg-raised); box-shadow: inset 0 0 0 1px var(--crisp-border-default), 0 4px 14px -4px rgba(28,40,64,0.16); }
|
|
11
|
+
& .crisp-flowcanvas-tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--crisp-space-1); height: 30px; min-width: 30px; padding: 0 var(--crisp-space-2); margin: 0; border: none; border-radius: var(--crisp-radius-md); background: none; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; }
|
|
12
|
+
& .crisp-flowcanvas-tool:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); color: var(--crisp-fg-primary); }
|
|
13
|
+
& .crisp-flowcanvas-tool-zoom { min-width: 48px; }
|
|
14
|
+
& .crisp-flowcanvas-tool-sep { width: 1px; height: 18px; background: var(--crisp-border-subtle); }
|
|
15
15
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@layer crisp-components {
|
|
2
|
+
.crisp-flowcanvas {
|
|
3
|
+
position: relative; overflow: hidden; box-sizing: border-box; width: 100%; height: 100%; background-color: var(--crisp-bg-surface); background-image: radial-gradient(circle, color-mix(in srgb, var(--crisp-fg-primary) 14%, transparent) 1px, transparent 1px); font-family: var(--crisp-font-sans); cursor: grab; touch-action: none; user-select: none;
|
|
4
|
+
&[data-panning] { cursor: grabbing; }
|
|
5
|
+
& .crisp-flowcanvas-viewport { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
|
|
6
|
+
& .crisp-flowcanvas-edges { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
|
|
7
|
+
& .crisp-flowcanvas-edge { fill: none; stroke: color-mix(in srgb, var(--crisp-fg-primary) 28%, transparent); stroke-width: 1.5; }
|
|
8
|
+
& .crisp-flowcanvas-edge-dot { fill: var(--crisp-bg-brand-solid); }
|
|
9
|
+
& .crisp-flowcanvas-node { position: absolute; cursor: grab; }
|
|
10
|
+
& .crisp-flowcanvas-node[data-dragging] { cursor: grabbing; z-index: 10; }
|
|
11
|
+
& .crisp-flowcanvas-toolbar { position: absolute; bottom: var(--crisp-space-4); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--crisp-space-1); padding: var(--crisp-space-1); border-radius: var(--crisp-radius-lg); background: var(--crisp-bg-raised); box-shadow: inset 0 0 0 1px var(--crisp-border-default), 0 4px 14px -4px rgba(28,40,64,0.16); }
|
|
12
|
+
& .crisp-flowcanvas-tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--crisp-space-1); height: 30px; min-width: 30px; padding: 0 var(--crisp-space-2); margin: 0; border: none; border-radius: var(--crisp-radius-md); background: none; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; }
|
|
13
|
+
& .crisp-flowcanvas-tool:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); color: var(--crisp-fg-primary); }
|
|
14
|
+
& .crisp-flowcanvas-tool-zoom { min-width: 48px; }
|
|
15
|
+
& .crisp-flowcanvas-tool-sep { width: 1px; height: 18px; background: var(--crisp-border-subtle); }
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/formfield.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.formfield {
|
|
2
|
-
display: flex; flex-direction: column; gap: var(--space-1-5); box-sizing: border-box; font-family: var(--font-sans);
|
|
3
|
-
& .formfield-label { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
4
|
-
& .formfield-required { color: var(--bg-danger); }
|
|
5
|
-
& .formfield-optional { color: color-mix(in srgb, var(--fg-primary) 40%, transparent); font-weight: var(--weight-regular); }
|
|
6
|
-
& .formfield-desc { font-size: var(--text-sm); line-height: 16px; color: var(--fg-muted); }
|
|
7
|
-
& .formfield-error { font-size: var(--text-sm); line-height: 16px; color: var(--bg-danger); }
|
|
1
|
+
.crisp-formfield {
|
|
2
|
+
display: flex; flex-direction: column; gap: var(--crisp-space-1-5); box-sizing: border-box; font-family: var(--crisp-font-sans);
|
|
3
|
+
& .crisp-formfield-label { display: inline-flex; align-items: center; gap: var(--crisp-space-1); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
|
|
4
|
+
& .crisp-formfield-required { color: var(--crisp-bg-danger); }
|
|
5
|
+
& .crisp-formfield-optional { color: color-mix(in srgb, var(--crisp-fg-primary) 40%, transparent); font-weight: var(--crisp-weight-regular); }
|
|
6
|
+
& .crisp-formfield-desc { font-size: var(--crisp-text-sm); line-height: 16px; color: var(--crisp-fg-muted); }
|
|
7
|
+
& .crisp-formfield-error { font-size: var(--crisp-text-sm); line-height: 16px; color: var(--crisp-bg-danger); }
|
|
8
8
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@layer crisp-components {
|
|
2
|
+
.crisp-formfield {
|
|
3
|
+
display: flex; flex-direction: column; gap: var(--crisp-space-1-5); box-sizing: border-box; font-family: var(--crisp-font-sans);
|
|
4
|
+
& .crisp-formfield-label { display: inline-flex; align-items: center; gap: var(--crisp-space-1); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
|
|
5
|
+
& .crisp-formfield-required { color: var(--crisp-bg-danger); }
|
|
6
|
+
& .crisp-formfield-optional { color: color-mix(in srgb, var(--crisp-fg-primary) 40%, transparent); font-weight: var(--crisp-weight-regular); }
|
|
7
|
+
& .crisp-formfield-desc { font-size: var(--crisp-text-sm); line-height: 16px; color: var(--crisp-fg-muted); }
|
|
8
|
+
& .crisp-formfield-error { font-size: var(--crisp-text-sm); line-height: 16px; color: var(--crisp-bg-danger); }
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/inbox.css
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
.inbox {
|
|
1
|
+
.crisp-inbox {
|
|
2
2
|
display: flex; flex-direction: column; box-sizing: border-box; width: 380px; max-height: 588px;
|
|
3
|
-
border-radius: var(--radius-xl); background: var(--bg-surface); font-family: var(--font-sans); overflow: hidden;
|
|
4
|
-
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 6%, transparent), 0 8px 28px -6px rgba(28,40,64,0.16), 0 2px 6px -2px rgba(28,40,64,0.10);
|
|
3
|
+
border-radius: var(--crisp-radius-xl); background: var(--crisp-bg-surface); font-family: var(--crisp-font-sans); overflow: hidden;
|
|
4
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent), 0 8px 28px -6px rgba(28,40,64,0.16), 0 2px 6px -2px rgba(28,40,64,0.10);
|
|
5
5
|
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
6
|
|
|
7
|
-
& .inbox-head { padding: var(--space-3) var(--space-3) 0; }
|
|
8
|
-
& .inbox-title { font-size: var(--text-xl); line-height: 28px; font-weight: var(--weight-semibold); letter-spacing: -0.3px; color: var(--fg-primary); }
|
|
9
|
-
& .inbox-tabs { display: flex; gap: var(--space-3); margin-top: var(--space-2); box-shadow: inset 0 -1px 0 var(--border-subtle); }
|
|
10
|
-
& .inbox-tab { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 32px; padding: 0 2px; margin: 0; border: none; background: none; font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color .12s, box-shadow .12s; }
|
|
11
|
-
& .inbox-tab:hover { color: var(--fg-primary); }
|
|
12
|
-
& .inbox-tab[data-active] { color: var(--bg-brand-solid); box-shadow: inset 0 -2px 0 var(--bg-brand-solid); }
|
|
13
|
-
& .inbox-tab-count { font-size: var(--text-sm); color: var(--fg-muted); }
|
|
14
|
-
& .inbox-tab[data-active] .inbox-tab-count { color: var(--bg-brand-solid); }
|
|
7
|
+
& .crisp-inbox-head { padding: var(--crisp-space-3) var(--crisp-space-3) 0; }
|
|
8
|
+
& .crisp-inbox-title { font-size: var(--crisp-text-xl); line-height: 28px; font-weight: var(--crisp-weight-semibold); letter-spacing: -0.3px; color: var(--crisp-fg-primary); }
|
|
9
|
+
& .crisp-inbox-tabs { display: flex; gap: var(--crisp-space-3); margin-top: var(--crisp-space-2); box-shadow: inset 0 -1px 0 var(--crisp-border-subtle); }
|
|
10
|
+
& .crisp-inbox-tab { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: 32px; padding: 0 2px; margin: 0; border: none; background: none; font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color .12s, box-shadow .12s; }
|
|
11
|
+
& .crisp-inbox-tab:hover { color: var(--crisp-fg-primary); }
|
|
12
|
+
& .crisp-inbox-tab[data-active] { color: var(--crisp-bg-brand-solid); box-shadow: inset 0 -2px 0 var(--crisp-bg-brand-solid); }
|
|
13
|
+
& .crisp-inbox-tab-count { font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); }
|
|
14
|
+
& .crisp-inbox-tab[data-active] .crisp-inbox-tab-count { color: var(--crisp-bg-brand-solid); }
|
|
15
15
|
|
|
16
|
-
& .inbox-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-1); display: flex; flex-direction: column; gap: 1px; }
|
|
17
|
-
& .inbox-row { display: flex; align-items: flex-start; gap: var(--space-2-5); padding: var(--space-2) var(--space-2); margin: 0; border: none; border-radius: var(--radius-md); background: none; font-family: inherit; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
18
|
-
& .inbox-row:hover { background: var(--bg-raised); }
|
|
19
|
-
& .inbox-row-avatar { flex-shrink: 0; margin-top: 1px; }
|
|
20
|
-
& .inbox-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
21
|
-
& .inbox-row-msg { font-size: var(--text-lg); line-height: 18px; color: var(--fg-primary); }
|
|
22
|
-
& .inbox-row-msg b { font-weight: var(--weight-semibold); }
|
|
23
|
-
& .inbox-row-time { font-size: var(--text-sm); color: var(--fg-muted); }
|
|
24
|
-
& .inbox-row-unread { flex-shrink: 0; width: 8px; height: 8px; margin-top: var(--space-1); border-radius: var(--radius-full); background: var(--bg-brand-solid); }
|
|
16
|
+
& .crisp-inbox-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--crisp-space-1); display: flex; flex-direction: column; gap: 1px; }
|
|
17
|
+
& .crisp-inbox-row { display: flex; align-items: flex-start; gap: var(--crisp-space-2-5); padding: var(--crisp-space-2) var(--crisp-space-2); margin: 0; border: none; border-radius: var(--crisp-radius-md); background: none; font-family: inherit; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
18
|
+
& .crisp-inbox-row:hover { background: var(--crisp-bg-raised); }
|
|
19
|
+
& .crisp-inbox-row-avatar { flex-shrink: 0; margin-top: 1px; }
|
|
20
|
+
& .crisp-inbox-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
21
|
+
& .crisp-inbox-row-msg { font-size: var(--crisp-text-lg); line-height: 18px; color: var(--crisp-fg-primary); }
|
|
22
|
+
& .crisp-inbox-row-msg b { font-weight: var(--crisp-weight-semibold); }
|
|
23
|
+
& .crisp-inbox-row-time { font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); }
|
|
24
|
+
& .crisp-inbox-row-unread { flex-shrink: 0; width: 8px; height: 8px; margin-top: var(--crisp-space-1); border-radius: var(--crisp-radius-full); background: var(--crisp-bg-brand-solid); }
|
|
25
25
|
|
|
26
|
-
& .inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); padding: var(--space-6) var(--space-4); text-align: center; }
|
|
27
|
-
& .inbox-empty-icon { display: inline-flex; margin-bottom: var(--space-2); color: color-mix(in srgb, var(--fg-primary) 22%, transparent); }
|
|
28
|
-
& .inbox-empty-title { font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--fg-primary); }
|
|
29
|
-
& .inbox-empty-sub { font-size: var(--text-md); line-height: 18px; color: var(--fg-muted); max-width: 260px; }
|
|
30
|
-
& .inbox-empty-action { margin-top: var(--space-2); }
|
|
26
|
+
& .crisp-inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--crisp-space-1); padding: var(--crisp-space-6) var(--crisp-space-4); text-align: center; }
|
|
27
|
+
& .crisp-inbox-empty-icon { display: inline-flex; margin-bottom: var(--crisp-space-2); color: color-mix(in srgb, var(--crisp-fg-primary) 22%, transparent); }
|
|
28
|
+
& .crisp-inbox-empty-title { font-size: var(--crisp-text-xl); font-weight: var(--crisp-weight-semibold); color: var(--crisp-fg-primary); }
|
|
29
|
+
& .crisp-inbox-empty-sub { font-size: var(--crisp-text-md); line-height: 18px; color: var(--crisp-fg-muted); max-width: 260px; }
|
|
30
|
+
& .crisp-inbox-empty-action { margin-top: var(--crisp-space-2); }
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@media (prefers-reduced-motion: reduce) {
|
|
34
|
-
.inbox, .inbox * {
|
|
34
|
+
.crisp-inbox, .crisp-inbox * {
|
|
35
35
|
animation-duration: 0.01ms !important;
|
|
36
36
|
animation-iteration-count: 1 !important;
|
|
37
37
|
transition-duration: 0.01ms !important;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@layer crisp-components {
|
|
2
|
+
.crisp-inbox {
|
|
3
|
+
display: flex; flex-direction: column; box-sizing: border-box; width: 380px; max-height: 588px;
|
|
4
|
+
border-radius: var(--crisp-radius-xl); background: var(--crisp-bg-surface); font-family: var(--crisp-font-sans); overflow: hidden;
|
|
5
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent), 0 8px 28px -6px rgba(28,40,64,0.16), 0 2px 6px -2px rgba(28,40,64,0.10);
|
|
6
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
7
|
+
|
|
8
|
+
& .crisp-inbox-head { padding: var(--crisp-space-3) var(--crisp-space-3) 0; }
|
|
9
|
+
& .crisp-inbox-title { font-size: var(--crisp-text-xl); line-height: 28px; font-weight: var(--crisp-weight-semibold); letter-spacing: -0.3px; color: var(--crisp-fg-primary); }
|
|
10
|
+
& .crisp-inbox-tabs { display: flex; gap: var(--crisp-space-3); margin-top: var(--crisp-space-2); box-shadow: inset 0 -1px 0 var(--crisp-border-subtle); }
|
|
11
|
+
& .crisp-inbox-tab { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: 32px; padding: 0 2px; margin: 0; border: none; background: none; font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color .12s, box-shadow .12s; }
|
|
12
|
+
& .crisp-inbox-tab:hover { color: var(--crisp-fg-primary); }
|
|
13
|
+
& .crisp-inbox-tab[data-active] { color: var(--crisp-bg-brand-solid); box-shadow: inset 0 -2px 0 var(--crisp-bg-brand-solid); }
|
|
14
|
+
& .crisp-inbox-tab-count { font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); }
|
|
15
|
+
& .crisp-inbox-tab[data-active] .crisp-inbox-tab-count { color: var(--crisp-bg-brand-solid); }
|
|
16
|
+
|
|
17
|
+
& .crisp-inbox-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--crisp-space-1); display: flex; flex-direction: column; gap: 1px; }
|
|
18
|
+
& .crisp-inbox-row { display: flex; align-items: flex-start; gap: var(--crisp-space-2-5); padding: var(--crisp-space-2) var(--crisp-space-2); margin: 0; border: none; border-radius: var(--crisp-radius-md); background: none; font-family: inherit; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
19
|
+
& .crisp-inbox-row:hover { background: var(--crisp-bg-raised); }
|
|
20
|
+
& .crisp-inbox-row-avatar { flex-shrink: 0; margin-top: 1px; }
|
|
21
|
+
& .crisp-inbox-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
22
|
+
& .crisp-inbox-row-msg { font-size: var(--crisp-text-lg); line-height: 18px; color: var(--crisp-fg-primary); }
|
|
23
|
+
& .crisp-inbox-row-msg b { font-weight: var(--crisp-weight-semibold); }
|
|
24
|
+
& .crisp-inbox-row-time { font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); }
|
|
25
|
+
& .crisp-inbox-row-unread { flex-shrink: 0; width: 8px; height: 8px; margin-top: var(--crisp-space-1); border-radius: var(--crisp-radius-full); background: var(--crisp-bg-brand-solid); }
|
|
26
|
+
|
|
27
|
+
& .crisp-inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--crisp-space-1); padding: var(--crisp-space-6) var(--crisp-space-4); text-align: center; }
|
|
28
|
+
& .crisp-inbox-empty-icon { display: inline-flex; margin-bottom: var(--crisp-space-2); color: color-mix(in srgb, var(--crisp-fg-primary) 22%, transparent); }
|
|
29
|
+
& .crisp-inbox-empty-title { font-size: var(--crisp-text-xl); font-weight: var(--crisp-weight-semibold); color: var(--crisp-fg-primary); }
|
|
30
|
+
& .crisp-inbox-empty-sub { font-size: var(--crisp-text-md); line-height: 18px; color: var(--crisp-fg-muted); max-width: 260px; }
|
|
31
|
+
& .crisp-inbox-empty-action { margin-top: var(--crisp-space-2); }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (prefers-reduced-motion: reduce) {
|
|
35
|
+
.crisp-inbox, .crisp-inbox * {
|
|
36
|
+
animation-duration: 0.01ms !important;
|
|
37
|
+
animation-iteration-count: 1 !important;
|
|
38
|
+
transition-duration: 0.01ms !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/dist/input.css
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
.input {
|
|
1
|
+
.crisp-input {
|
|
2
2
|
|
|
3
3
|
position: relative; box-sizing: border-box; display: inline-flex; align-items: center;
|
|
4
|
-
width: 100%; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
5
|
-
font-family: var(--font-sans); font-size: var(--text-lg); line-height: 20px;
|
|
4
|
+
width: 100%; background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
5
|
+
font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px;
|
|
6
6
|
|
|
7
7
|
&::after {
|
|
8
8
|
content: ""; position: absolute; inset: 0; border-radius: inherit;
|
|
9
9
|
border: 2px solid transparent; transition: border-color .1s ease;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
}
|
|
12
|
-
&:focus-within::after { border-color: var(--stroke-field-focus); }
|
|
12
|
+
&:focus-within::after { border-color: var(--crisp-stroke-field-focus); }
|
|
13
13
|
|
|
14
|
-
& .input-value {
|
|
14
|
+
& .crisp-input-value {
|
|
15
15
|
box-sizing: border-box; flex: 1 1 auto; min-width: 0; width: 100%;
|
|
16
16
|
align-self: stretch; margin: 0; border: none; background: none; outline: none;
|
|
17
|
-
font: inherit; color: var(--fg-primary);
|
|
17
|
+
font: inherit; color: var(--crisp-fg-primary);
|
|
18
18
|
}
|
|
19
|
-
& .input-value::placeholder { color: var(--fg-muted); }
|
|
20
|
-
& .input-value:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
21
|
-
&:has(.input-value:disabled) { opacity: 1; }
|
|
19
|
+
& .crisp-input-value::placeholder { color: var(--crisp-fg-muted); }
|
|
20
|
+
& .crisp-input-value:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
21
|
+
&:has(.crisp-input-value:disabled) { opacity: 1; }
|
|
22
22
|
|
|
23
23
|
}
|
|
24
|
-
.input--size_medium {
|
|
25
|
-
height: 32px; border-radius: var(--radius-md); & .input-value { padding-inline: var(--space-2-5); }
|
|
24
|
+
.crisp-input--size_medium {
|
|
25
|
+
height: 32px; border-radius: var(--crisp-radius-md); & .crisp-input-value { padding-inline: var(--crisp-space-2-5); }
|
|
26
26
|
}
|
|
27
|
-
.input--size_large {
|
|
28
|
-
height: 36px; border-radius: 10px; & .input-value { padding-inline: var(--space-3); }
|
|
27
|
+
.crisp-input--size_large {
|
|
28
|
+
height: 36px; border-radius: 10px; & .crisp-input-value { padding-inline: var(--crisp-space-3); }
|
|
29
29
|
}
|
|
30
|
-
.input--invalid_true {
|
|
31
|
-
&::after { border-color: var(--bg-danger); } &:focus-within::after { border-color: var(--bg-danger); }
|
|
30
|
+
.crisp-input--invalid_true {
|
|
31
|
+
&::after { border-color: var(--crisp-bg-danger); } &:focus-within::after { border-color: var(--crisp-bg-danger); }
|
|
32
32
|
}
|
|
33
|
-
.input--invalid_false {
|
|
33
|
+
.crisp-input--invalid_false {
|
|
34
34
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@media (prefers-reduced-motion: reduce) {
|
|
38
|
-
.input, .input * {
|
|
38
|
+
.crisp-input, .crisp-input * {
|
|
39
39
|
animation-duration: 0.01ms !important;
|
|
40
40
|
animation-iteration-count: 1 !important;
|
|
41
41
|
transition-duration: 0.01ms !important;
|