@ostack.tech/ui 1.1.0 → 1.2.0-beta.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/dist/chunks/en-DGLb7rrz.js.map +1 -1
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui.css +8 -16
- package/dist/ostack-ui.js +26831 -7981
- package/dist/ostack-ui.js.map +1 -1
- package/package.json +15 -13
- package/scss/components/Button/_Button.scss +4 -18
- package/scss/components/ButtonGroup/_ButtonGroup.scss +2 -6
- package/scss/components/Calendar/_Calendar-variables.scss +4 -12
- package/scss/components/Calendar/_Calendar.scss +19 -38
- package/scss/components/Card/_Card-variables.scss +4 -12
- package/scss/components/Card/_Card.scss +8 -28
- package/scss/components/Collapsible/_Collapsible.scss +2 -8
- package/scss/components/CommandMenu/_CommandMenu-variables.scss +2 -6
- package/scss/components/CommandMenu/_CommandMenu.scss +5 -13
- package/scss/components/ControlAddon/_ControlAddon-variables.scss +4 -12
- package/scss/components/ControlAddon/_ControlAddon.scss +16 -52
- package/scss/components/DataTable/_DataTable.scss +1 -2
- package/scss/components/DateRangeInput/_DateRangeInput-variables.scss +1 -3
- package/scss/components/DateRangeInput/_DateRangeInput.scss +7 -21
- package/scss/components/Dialog/_Dialog.scss +6 -19
- package/scss/components/DropdownMenu/_DropdownMenu.scss +1 -2
- package/scss/components/Feedback/_Feedback-variables.scss +1 -6
- package/scss/components/Feedback/_Feedback.scss +8 -33
- package/scss/components/FieldGroup/_FieldGroup.scss +1 -4
- package/scss/components/Grid/_Grid.scss +4 -12
- package/scss/components/HelperText/_HelperText.scss +1 -4
- package/scss/components/Input/_Input.scss +11 -32
- package/scss/components/Label/_Label.scss +2 -6
- package/scss/components/Link/_Link.scss +1 -2
- package/scss/components/MenuList/_MenuList.scss +2 -6
- package/scss/components/Overlay/_Overlay-variables.scss +1 -3
- package/scss/components/Overlay/_Overlay.scss +2 -4
- package/scss/components/Root/_Root.scss +4 -16
- package/scss/components/Select/_Select-variables.scss +4 -12
- package/scss/components/Select/_Select.scss +1 -2
- package/scss/components/Separator/_Separator.scss +2 -8
- package/scss/components/Spinner/_Spinner.scss +2 -8
- package/scss/components/Stepper/_Stepper-variables.scss +5 -15
- package/scss/components/Stepper/_Stepper.scss +2 -5
- package/scss/components/Table/_Table-variables.scss +16 -47
- package/scss/components/Table/_Table.scss +30 -112
- package/scss/components/Tabs/_Tabs-variables.scss +15 -43
- package/scss/components/Tabs/_Tabs.scss +13 -46
- package/scss/components/Tag/_Tag-variables.scss +1 -4
- package/scss/components/Tag/_Tag.scss +5 -14
- package/scss/components/Toast/_Toast.scss +3 -8
- package/scss/components/Tooltip/_Tooltip-variables.scss +1 -3
- package/scss/components/Tooltip/_Tooltip.scss +4 -12
- package/scss/scss/_base-variables.scss +6 -7
- package/scss/scss/placeholders/button/_button.scss +2 -8
- package/scss/scss/placeholders/checkable/_checkable.scss +15 -60
- package/scss/scss/placeholders/control/_control-variables.scss +3 -10
- package/scss/scss/placeholders/control/_control.scss +10 -38
- package/scss/scss/placeholders/menu/_menu-variables.scss +14 -42
- package/scss/scss/placeholders/menu/_menu.scss +22 -82
- package/scss/scss/placeholders/notification/_notification.scss +2 -4
- package/scss/scss/placeholders/popover/_popover-variables.scss +1 -3
- package/scss/scss/placeholders/popover/_popover.scss +4 -11
- package/scss/scss/utils/_breakpoints.scss +1 -4
- package/scss/scss/utils/_responsive-values.scss +2 -5
- package/scss/scss/utils/_spinner.scss +1 -2
- package/types/components/Actions/Action.d.ts +6 -6
- package/types/components/Actions/ActionGroup.d.ts +10 -14
- package/types/components/Actions/ActionMenu.d.ts +13 -17
- package/types/components/Actions/ActionSplit.d.ts +4 -4
- package/types/components/Actions/Actions.d.ts +20 -25
- package/types/components/Actions/ActionsSecondary.d.ts +1 -1
- package/types/components/Alert/Alert.d.ts +8 -9
- package/types/components/Alert/AlertTitle.d.ts +3 -3
- package/types/components/AlertDialog/AlertDialog.d.ts +16 -20
- package/types/components/AlertDialog/AlertDialogAction.d.ts +2 -2
- package/types/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
- package/types/components/AlertDialog/AlertDialogContent.d.ts +2 -3
- package/types/components/AlertDialog/AlertDialogDescription.d.ts +4 -5
- package/types/components/Button/Button.d.ts +32 -39
- package/types/components/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/types/components/Calendar/Calendar.d.ts +2 -3
- package/types/components/Calendar/CalendarDay.d.ts +3 -4
- package/types/components/Calendar/CalendarHeader.d.ts +2 -2
- package/types/components/Card/Card.d.ts +6 -13
- package/types/components/Card/CardBody.d.ts +3 -3
- package/types/components/Card/CardFooter.d.ts +3 -3
- package/types/components/Card/CardHeader.d.ts +3 -3
- package/types/components/Card/CardTitle.d.ts +3 -3
- package/types/components/Checkbox/Checkbox.d.ts +17 -29
- package/types/components/CheckboxGroup/CheckboxGroup.d.ts +24 -38
- package/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +5 -6
- package/types/components/CloseButton/CloseButton.d.ts +1 -1
- package/types/components/Code/Code.d.ts +4 -5
- package/types/components/Collapsible/Collapsible.d.ts +3 -9
- package/types/components/Collapsible/CollapsibleTrigger.d.ts +1 -4
- package/types/components/CommandMenu/CommandMenu.d.ts +6 -7
- package/types/components/CommandMenu/CommandMenuDialog.d.ts +6 -10
- package/types/components/CommandMenu/CommandMenuItem.d.ts +3 -3
- package/types/components/CommandMenu/cmdk/index.d.ts +73 -112
- package/types/components/Container/Container.d.ts +17 -21
- package/types/components/Control/Control.d.ts +21 -27
- package/types/components/Control/ControlWithContainerRef.d.ts +5 -6
- package/types/components/ControlAddon/ControlAddon.d.ts +9 -13
- package/types/components/ControlCode/ControlCode.d.ts +5 -8
- package/types/components/DataTable/DataTable.d.ts +59 -90
- package/types/components/DataTable/DataTableApi.d.ts +11 -12
- package/types/components/DataTable/DataTableColumn.d.ts +18 -21
- package/types/components/DataTable/DataTableColumnGroup.d.ts +3 -4
- package/types/components/DataTable/DataTableColumns.d.ts +4 -4
- package/types/components/DataTable/DataTableContent.d.ts +2 -5
- package/types/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +1 -4
- package/types/components/DataTable/DataTableFilter.d.ts +3 -3
- package/types/components/DataTable/DataTablePagination.d.ts +5 -9
- package/types/components/DataTable/DataTableRowsPerPage.d.ts +4 -5
- package/types/components/DataTable/DataTableSelectionTrigger.d.ts +5 -11
- package/types/components/DataTable/PagedDataTablePagination.d.ts +1 -1
- package/types/components/DataTable/PagedDataTableRows.d.ts +1 -1
- package/types/components/DataTable/ScrolledDataTableRows.d.ts +1 -1
- package/types/components/DataTable/index.d.ts +1 -1
- package/types/components/DataTable/{getRowKey.d.ts → keyUtils.d.ts} +2 -0
- package/types/components/DataTable/spliceWindow.d.ts +3 -4
- package/types/components/DateInput/DateInput.d.ts +21 -34
- package/types/components/DateRangeInput/DateRangeInput.d.ts +41 -70
- package/types/components/DescriptionList/DescriptionList.d.ts +5 -10
- package/types/components/Dialog/Dialog.d.ts +9 -11
- package/types/components/Dialog/DialogContent.d.ts +3 -4
- package/types/components/Dialog/DialogDescription.d.ts +2 -3
- package/types/components/DropdownMenu/DropdownMenu.d.ts +10 -21
- package/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
- package/types/components/DropdownMenu/DropdownMenuItem.d.ts +3 -3
- package/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +1 -1
- package/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +1 -4
- package/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +1 -4
- package/types/components/ErrorBoundary/ErrorBoundary.d.ts +21 -27
- package/types/components/Feedback/Feedback.d.ts +6 -6
- package/types/components/Feedback/FeedbackPopover.d.ts +3 -3
- package/types/components/Feedback/FeedbackProvider.d.ts +3 -4
- package/types/components/Feedback/feedbackUtils.d.ts +5 -8
- package/types/components/Field/Field.d.ts +9 -11
- package/types/components/Field/fieldUtils.d.ts +2 -2
- package/types/components/FieldGroup/FieldGroup.d.ts +4 -5
- package/types/components/FieldGroup/FieldGroupBody.d.ts +3 -3
- package/types/components/FieldGroup/FieldGroupHeader.d.ts +4 -4
- package/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
- package/types/components/Form/Form.d.ts +25 -40
- package/types/components/Form/FormContext.d.ts +2 -2
- package/types/components/Form/FormError.d.ts +6 -11
- package/types/components/Form/FormState.d.ts +2 -2
- package/types/components/Form/formUtils.d.ts +1 -1
- package/types/components/Form/useRegisterFormControl.d.ts +1 -1
- package/types/components/Grid/Grid.d.ts +19 -24
- package/types/components/Heading/Heading.d.ts +9 -10
- package/types/components/HelperText/HelperText.d.ts +3 -3
- package/types/components/HelperText/HelperTextProvider.d.ts +3 -4
- package/types/components/Icon/Icon.d.ts +9 -16
- package/types/components/IconButton/IconButton.d.ts +35 -53
- package/types/components/Input/Input.d.ts +5 -12
- package/types/components/Keybinds/KeyPress.d.ts +1 -1
- package/types/components/Keybinds/Keybind.d.ts +1 -1
- package/types/components/Keybinds/Keybinds.d.ts +3 -9
- package/types/components/Keyboard/Keyboard.d.ts +7 -8
- package/types/components/Label/Label.d.ts +5 -6
- package/types/components/Label/LabelProvider.d.ts +3 -4
- package/types/components/Label/labelUtils.d.ts +2 -2
- package/types/components/Layer/Layer.d.ts +4 -4
- package/types/components/Link/Link.d.ts +13 -13
- package/types/components/Mark/Mark.d.ts +6 -7
- package/types/components/MenuList/MenuList.d.ts +6 -7
- package/types/components/MenuList/MenuListGroup.d.ts +5 -6
- package/types/components/MenuList/MenuListItem.d.ts +21 -25
- package/types/components/NumericInput/NumericInput.d.ts +20 -34
- package/types/components/NumericInput/numericInputUtils.d.ts +4 -5
- package/types/components/Output/Output.d.ts +12 -13
- package/types/components/Popover/Popover.d.ts +6 -13
- package/types/components/Popover/PopoverAnchor.d.ts +2 -2
- package/types/components/Popover/PopoverTrigger.d.ts +2 -2
- package/types/components/Portal/Portal.d.ts +3 -4
- package/types/components/Printer/Printer.d.ts +40 -54
- package/types/components/Printer/PrinterContent.d.ts +6 -6
- package/types/components/Printer/PrinterContentContext.d.ts +4 -5
- package/types/components/Printer/PrinterContext.d.ts +4 -4
- package/types/components/Printer/PrinterTrigger.d.ts +5 -6
- package/types/components/Printer/index.d.ts +1 -1
- package/types/components/RadioGroup/Radio.d.ts +10 -13
- package/types/components/RadioGroup/RadioGroup.d.ts +21 -34
- package/types/components/Root/Root.d.ts +21 -27
- package/types/components/Root/RootContext.d.ts +1 -4
- package/types/components/Select/Option.d.ts +3 -3
- package/types/components/Select/Select.d.ts +14 -26
- package/types/components/Select/SelectNative.d.ts +1 -1
- package/types/components/Separator/Separator.d.ts +3 -4
- package/types/components/Slot/Slottable.d.ts +1 -4
- package/types/components/Spinner/Spinner.d.ts +5 -12
- package/types/components/Stack/Stack.d.ts +9 -13
- package/types/components/Stepper/Step.d.ts +6 -6
- package/types/components/Stepper/StepContent.d.ts +3 -3
- package/types/components/Stepper/StepList.d.ts +4 -5
- package/types/components/Stepper/Stepper.d.ts +4 -5
- package/types/components/Stepper/StepperFinishTrigger.d.ts +3 -9
- package/types/components/Stepper/StepperNextTrigger.d.ts +3 -6
- package/types/components/Stepper/StepperPreviousTrigger.d.ts +4 -10
- package/types/components/Table/Table.d.ts +42 -58
- package/types/components/Table/TableCell.d.ts +15 -19
- package/types/components/Table/TableColumn.d.ts +15 -27
- package/types/components/Table/TableColumnGroup.d.ts +2 -3
- package/types/components/Table/TableHead.d.ts +5 -5
- package/types/components/Tabs/TabContent.d.ts +2 -2
- package/types/components/Tabs/TabList.d.ts +1 -1
- package/types/components/Tabs/Tabs.d.ts +4 -8
- package/types/components/Tag/Tag.d.ts +8 -8
- package/types/components/TextArea/TextArea.d.ts +7 -13
- package/types/components/Toast/Toast.d.ts +25 -38
- package/types/components/Toast/ToastProvider.d.ts +2 -5
- package/types/components/Toast/ToastViewport.d.ts +2 -5
- package/types/components/Tooltip/Tooltip.d.ts +11 -11
- package/types/components/VisuallyHidden/VisuallyHidden.d.ts +7 -11
- package/types/index.d.ts +2 -1
- package/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +17 -19
- package/types/providers/AlertDialogProvider/useAlertDialog.d.ts +50 -58
- package/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +1 -4
- package/types/providers/ErrorReportingProvider/ErrorReport.d.ts +4 -7
- package/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +12 -17
- package/types/providers/LocalizationProvider/useLocale.d.ts +1 -4
- package/types/providers/PrefixProvider/defaultPrefix.d.ts +2 -3
- package/types/providers/PrefixProvider/usePrefix.d.ts +3 -6
- package/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +3 -3
- package/types/providers/ToastManagerProvider/useToastManager.d.ts +11 -14
- package/types/utils/__tests__/useCombinedRef.test.d.ts +1 -0
- package/types/utils/breakpoints.d.ts +5 -6
- package/types/utils/combineAriaIds.d.ts +1 -1
- package/types/utils/cx.d.ts +2 -5
- package/types/utils/filtering.d.ts +2 -2
- package/types/utils/keyboardShortcut.d.ts +18 -25
- package/types/utils/navigate.d.ts +2 -2
- package/types/utils/numericStringUtils.d.ts +6 -13
- package/types/utils/parseChildren.d.ts +5 -9
- package/types/utils/reactCompilerUtils.d.ts +7 -0
- package/types/utils/setNativeProperty.d.ts +2 -3
- package/types/utils/sorting.d.ts +2 -2
- package/types/utils/useCombinedEventHandler.d.ts +30 -0
- package/types/utils/useCombinedRef.d.ts +6 -4
- package/types/utils/useCssVars.d.ts +9 -20
- package/types/utils/useDateTransformer.d.ts +4 -8
- package/types/utils/useIntersectionObserver.d.ts +2 -5
- package/types/utils/useLatestRef.d.ts +1 -2
- package/types/utils/useLocation.d.ts +5 -8
- package/types/utils/useMeasure.d.ts +2 -5
- package/types/utils/useMediaQuery.d.ts +1 -4
- package/types/utils/useNumericTransformer.d.ts +12 -19
- package/types/utils/usePrevious.d.ts +3 -4
- package/types/utils/useResponsiveValues.d.ts +7 -10
- package/types/utils/useScrollPosition.d.ts +1 -6
- package/types/utils/useSearchParam.d.ts +2 -6
- package/types/utils/useSearchParams.d.ts +1 -4
- package/types/utils/useSpacing.d.ts +1 -4
- package/types/utils/zustandUtils.d.ts +3 -2
- package/types/utils/combineEventHandlers.d.ts +0 -24
- /package/types/utils/__tests__/{combineEventHandlers.test.d.ts → useCombinedEventHandler.test.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui",
|
|
3
|
+
"version": "1.2.0-beta.1",
|
|
3
4
|
"description": "ostack/UI component library.",
|
|
4
|
-
"version": "1.1.0",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -12,15 +12,22 @@
|
|
|
12
12
|
"url": "git+https://bitbucket.org/opensoftgitrepo/ostack-ui.git",
|
|
13
13
|
"directory": "packages/ui/"
|
|
14
14
|
},
|
|
15
|
+
"style": "dist/ostack-ui.css",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/",
|
|
18
|
+
"scss/",
|
|
19
|
+
"types/"
|
|
20
|
+
],
|
|
15
21
|
"type": "module",
|
|
22
|
+
"sideEffects": false,
|
|
16
23
|
"main": "dist/ostack-ui.js",
|
|
17
24
|
"types": "types/index.d.ts",
|
|
18
|
-
"sass": "scss/index.scss",
|
|
19
|
-
"style": "dist/ostack-ui.css",
|
|
20
25
|
"exports": {
|
|
21
26
|
".": {
|
|
22
27
|
"types": "./types/index.d.ts",
|
|
23
|
-
"import": "./dist/ostack-ui.js"
|
|
28
|
+
"import": "./dist/ostack-ui.js",
|
|
29
|
+
"style": "./dist/ostack-ui.css",
|
|
30
|
+
"sass": "./scss/index.scss"
|
|
24
31
|
},
|
|
25
32
|
"./locales": {
|
|
26
33
|
"types": "./types/locales/index.d.ts",
|
|
@@ -35,24 +42,19 @@
|
|
|
35
42
|
"./scss/*": "./scss/*",
|
|
36
43
|
"./package.json": "./package.json"
|
|
37
44
|
},
|
|
38
|
-
"sideEffects": false,
|
|
39
|
-
"files": [
|
|
40
|
-
"dist/",
|
|
41
|
-
"scss/",
|
|
42
|
-
"types/"
|
|
43
|
-
],
|
|
44
45
|
"scripts": {
|
|
45
46
|
"build": "tsc -b && vite build && npm run copy:scss",
|
|
46
|
-
"copy:scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/"
|
|
47
|
+
"copy:scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/",
|
|
48
|
+
"test": "vitest --run"
|
|
47
49
|
},
|
|
48
50
|
"dependencies": {
|
|
49
51
|
"@daypicker/react": "^10.0.1",
|
|
50
52
|
"@fortawesome/react-fontawesome": "^3.5.0",
|
|
51
|
-
"@tanstack/react-virtual": "^3.14.
|
|
53
|
+
"@tanstack/react-virtual": "^3.14.13",
|
|
52
54
|
"esm-env": "^1.2.2",
|
|
53
55
|
"from-exponential": "^1.1.1",
|
|
54
56
|
"radix-ui": "^1.6.7",
|
|
55
|
-
"react-error-boundary": "^6.1.
|
|
57
|
+
"react-error-boundary": "^6.1.5",
|
|
56
58
|
"react-number-format": "^5.4.5",
|
|
57
59
|
"react-to-print": "^3.3.0",
|
|
58
60
|
"tinykeys": "^4.0.0"
|
|
@@ -38,12 +38,7 @@
|
|
|
38
38
|
&__spinner {
|
|
39
39
|
font-size: var(--#{$prefix}button-icon-font-size);
|
|
40
40
|
margin: calc(
|
|
41
|
-
(
|
|
42
|
-
var(--#{$prefix}button-icon-font-size) - var(
|
|
43
|
-
--#{$prefix}button-font-size
|
|
44
|
-
)
|
|
45
|
-
) *
|
|
46
|
-
-0.5
|
|
41
|
+
(var(--#{$prefix}button-icon-font-size) - var(--#{$prefix}button-font-size)) * -0.5
|
|
47
42
|
)
|
|
48
43
|
0;
|
|
49
44
|
|
|
@@ -74,18 +69,9 @@
|
|
|
74
69
|
// Size
|
|
75
70
|
@each $size in $button-sizes {
|
|
76
71
|
&--#{$size} {
|
|
77
|
-
@include declare-var(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
);
|
|
81
|
-
@include declare-var(
|
|
82
|
-
--#{$prefix}button-padding-x,
|
|
83
|
-
map.get($button-padding-x-by-size, $size)
|
|
84
|
-
);
|
|
85
|
-
@include declare-var(
|
|
86
|
-
--#{$prefix}button-font-size,
|
|
87
|
-
map.get($button-font-size-by-size, $size)
|
|
88
|
-
);
|
|
72
|
+
@include declare-var(--#{$prefix}button-padding-y, map.get($button-padding-y-by-size, $size));
|
|
73
|
+
@include declare-var(--#{$prefix}button-padding-x, map.get($button-padding-x-by-size, $size));
|
|
74
|
+
@include declare-var(--#{$prefix}button-font-size, map.get($button-font-size-by-size, $size));
|
|
89
75
|
@include declare-var(
|
|
90
76
|
--#{$prefix}button-line-height,
|
|
91
77
|
map.get($button-line-height-by-size, $size)
|
|
@@ -32,13 +32,9 @@
|
|
|
32
32
|
&:not(:first-child) {
|
|
33
33
|
margin-left: map.get($button-group-margin-x-by-variant, $variant);
|
|
34
34
|
|
|
35
|
-
$separator-width: map.get(
|
|
36
|
-
$button-group-separator-width-by-variant,
|
|
37
|
-
$variant
|
|
38
|
-
);
|
|
35
|
+
$separator-width: map.get($button-group-separator-width-by-variant, $variant);
|
|
39
36
|
@if $separator-width != null and $separator-width != NULL {
|
|
40
|
-
border-left: $separator-width
|
|
41
|
-
solid
|
|
37
|
+
border-left: $separator-width solid
|
|
42
38
|
map.get($button-group-separator-color-by-variant, $variant);
|
|
43
39
|
}
|
|
44
40
|
}
|
|
@@ -77,29 +77,21 @@ $calendar-day-inner-focus-outline-offset: -1px !default;
|
|
|
77
77
|
$calendar-day-inner-hover-background-color: var(--#{$prefix}neutral-3) !default;
|
|
78
78
|
|
|
79
79
|
// Day inner - Active
|
|
80
|
-
$calendar-day-inner-active-background-color: var(
|
|
81
|
-
--#{$prefix}neutral-4
|
|
82
|
-
) !default;
|
|
80
|
+
$calendar-day-inner-active-background-color: var(--#{$prefix}neutral-4) !default;
|
|
83
81
|
|
|
84
82
|
// Day inner - Disabled
|
|
85
83
|
$calendar-day-inner-disabled-opacity: 0.5 !default;
|
|
86
84
|
|
|
87
85
|
// Day inner - Selected
|
|
88
|
-
$calendar-day-inner-selected-background-color: var(
|
|
89
|
-
--#{$prefix}primary-9
|
|
90
|
-
) !default;
|
|
86
|
+
$calendar-day-inner-selected-background-color: var(--#{$prefix}primary-9) !default;
|
|
91
87
|
$calendar-day-inner-selected-color: var(--#{$prefix}primary-contrast) !default;
|
|
92
88
|
|
|
93
89
|
// Day inner - Selected + Focus
|
|
94
|
-
$calendar-day-inner-selected-focus-outline-color: var(
|
|
95
|
-
--#{$prefix}primary-8
|
|
96
|
-
) !default;
|
|
90
|
+
$calendar-day-inner-selected-focus-outline-color: var(--#{$prefix}primary-8) !default;
|
|
97
91
|
$calendar-day-inner-selected-focus-outline-offset: 2px !default;
|
|
98
92
|
|
|
99
93
|
// Day inner - Selected + Active
|
|
100
|
-
$calendar-day-inner-selected-active-background-color: var(
|
|
101
|
-
--#{$prefix}primary-10
|
|
102
|
-
) !default;
|
|
94
|
+
$calendar-day-inner-selected-active-background-color: var(--#{$prefix}primary-10) !default;
|
|
103
95
|
|
|
104
96
|
// Day inner - Today
|
|
105
97
|
$calendar-day-inner-today-border-width: 1px !default;
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
width: fit-content;
|
|
13
13
|
|
|
14
14
|
&__months {
|
|
15
|
-
margin: calc($calendar-month-margin-y * -1) 0 0
|
|
16
|
-
calc($calendar-month-margin-x * -1);
|
|
15
|
+
margin: calc($calendar-month-margin-y * -1) 0 0 calc($calendar-month-margin-x * -1);
|
|
17
16
|
display: flex;
|
|
18
17
|
flex-wrap: wrap;
|
|
19
18
|
align-items: flex-start;
|
|
@@ -49,8 +48,7 @@
|
|
|
49
48
|
align-items: center;
|
|
50
49
|
justify-content: space-between;
|
|
51
50
|
|
|
52
|
-
margin: calc($calendar-month-border-width * -1)
|
|
53
|
-
calc($calendar-month-border-width * -1) 0
|
|
51
|
+
margin: calc($calendar-month-border-width * -1) calc($calendar-month-border-width * -1) 0
|
|
54
52
|
calc($calendar-month-border-width * -1);
|
|
55
53
|
padding: $calendar-month-padding;
|
|
56
54
|
border-top-left-radius: $calendar-month-border-radius;
|
|
@@ -101,10 +99,7 @@
|
|
|
101
99
|
font-size: inherit;
|
|
102
100
|
line-height: inherit;
|
|
103
101
|
|
|
104
|
-
@include declare-var(
|
|
105
|
-
--#{$prefix}control-padding-x,
|
|
106
|
-
$calendar-select-padding-x !important
|
|
107
|
-
);
|
|
102
|
+
@include declare-var(--#{$prefix}control-padding-x, $calendar-select-padding-x !important);
|
|
108
103
|
}
|
|
109
104
|
|
|
110
105
|
.#{$prefix}input__container {
|
|
@@ -201,8 +196,7 @@
|
|
|
201
196
|
}
|
|
202
197
|
|
|
203
198
|
&-inner:focus-visible {
|
|
204
|
-
outline: $calendar-day-inner-focus-outline-width solid
|
|
205
|
-
$calendar-day-inner-focus-outline-color;
|
|
199
|
+
outline: $calendar-day-inner-focus-outline-width solid $calendar-day-inner-focus-outline-color;
|
|
206
200
|
outline-offset: $calendar-day-inner-focus-outline-offset;
|
|
207
201
|
}
|
|
208
202
|
|
|
@@ -224,10 +218,8 @@
|
|
|
224
218
|
}
|
|
225
219
|
}
|
|
226
220
|
|
|
227
|
-
&--today:not(&--outside):not(&--selected:not(&--range-middle))
|
|
228
|
-
|
|
229
|
-
border: $calendar-day-inner-today-border-width solid
|
|
230
|
-
$calendar-day-inner-today-border-color;
|
|
221
|
+
&--today:not(&--outside):not(&--selected:not(&--range-middle)) &-inner:not(:focus-visible) {
|
|
222
|
+
border: $calendar-day-inner-today-border-width solid $calendar-day-inner-today-border-color;
|
|
231
223
|
}
|
|
232
224
|
|
|
233
225
|
&--outside &-inner {
|
|
@@ -254,23 +246,20 @@
|
|
|
254
246
|
position: absolute;
|
|
255
247
|
z-index: -1;
|
|
256
248
|
inset: calc(
|
|
257
|
-
($calendar-day-inner-size - $calendar-range-height) / 2 -
|
|
258
|
-
$calendar-month-border-width
|
|
249
|
+
($calendar-day-inner-size - $calendar-range-height) / 2 - $calendar-month-border-width
|
|
259
250
|
)
|
|
260
251
|
calc(
|
|
261
|
-
($calendar-day-width - $calendar-day-inner-size) / -2 -
|
|
262
|
-
$calendar-month-
|
|
252
|
+
($calendar-day-width - $calendar-day-inner-size) / -2 - $calendar-month-border-width -
|
|
253
|
+
$calendar-month-padding
|
|
263
254
|
);
|
|
264
255
|
background-color: transparent;
|
|
265
256
|
border: $calendar-range-border-width solid transparent;
|
|
266
257
|
}
|
|
267
258
|
}
|
|
268
259
|
|
|
269
|
-
:is(
|
|
270
|
-
&--
|
|
271
|
-
|
|
272
|
-
&--range-end:not(&--range-start)
|
|
273
|
-
):not(&--outside)
|
|
260
|
+
:is(&--range-start:not(&--range-end), &--range-middle, &--range-end:not(&--range-start)):not(
|
|
261
|
+
&--outside
|
|
262
|
+
)
|
|
274
263
|
&-inner::before {
|
|
275
264
|
background-color: $calendar-range-background-color;
|
|
276
265
|
}
|
|
@@ -305,37 +294,29 @@
|
|
|
305
294
|
border-image-slice: $calendar-range-focus-border-image-slice;
|
|
306
295
|
}
|
|
307
296
|
|
|
308
|
-
&--focused-range-start:not(&--focused-range-end):not(&--outside)
|
|
309
|
-
&-inner::after {
|
|
297
|
+
&--focused-range-start:not(&--focused-range-end):not(&--outside) &-inner::after {
|
|
310
298
|
left: calc($calendar-day-inner-size / 2);
|
|
311
299
|
}
|
|
312
300
|
|
|
313
|
-
&--focused-range-end:not(&--focused-range-start):not(&--outside)
|
|
314
|
-
&-inner::after {
|
|
301
|
+
&--focused-range-end:not(&--focused-range-start):not(&--outside) &-inner::after {
|
|
315
302
|
right: calc($calendar-day-inner-size / 2);
|
|
316
303
|
}
|
|
317
304
|
|
|
318
|
-
:is(
|
|
319
|
-
&--
|
|
320
|
-
|
|
321
|
-
):not(&--disabled):not(&--outside)
|
|
305
|
+
:is(&--focused-range-start:not(&--range-start), &--focused-range-end:not(&--range-end)):not(
|
|
306
|
+
&--disabled
|
|
307
|
+
):not(&--outside)
|
|
322
308
|
&-inner {
|
|
323
309
|
border: $calendar-range-border-width $calendar-range-focus-border-style
|
|
324
310
|
$calendar-range-focus-border-color;
|
|
325
311
|
background-color: $calendar-range-background-color;
|
|
326
312
|
}
|
|
327
313
|
|
|
328
|
-
&--focused-range-start:not(&--range-start):not(&--today):not(
|
|
329
|
-
&--disabled
|
|
330
|
-
):not(&--outside)
|
|
314
|
+
&--focused-range-start:not(&--range-start):not(&--today):not(&--disabled):not(&--outside)
|
|
331
315
|
&-inner {
|
|
332
316
|
border-right-color: transparent;
|
|
333
317
|
}
|
|
334
318
|
|
|
335
|
-
&--focused-range-end:not(&--range-end):not(&--today):not(&--disabled):not(
|
|
336
|
-
&--outside
|
|
337
|
-
)
|
|
338
|
-
&-inner {
|
|
319
|
+
&--focused-range-end:not(&--range-end):not(&--today):not(&--disabled):not(&--outside) &-inner {
|
|
339
320
|
border-left-color: transparent;
|
|
340
321
|
}
|
|
341
322
|
}
|
|
@@ -32,9 +32,7 @@ $card-solid-unmerged-separator-border-color: null !default;
|
|
|
32
32
|
$card-solid-unmerged-header-separator-border-color: transparent !default;
|
|
33
33
|
|
|
34
34
|
// Solid variant - Unmerged - Body
|
|
35
|
-
$card-solid-unmerged-body-background-color: var(
|
|
36
|
-
--#{$prefix}background-color
|
|
37
|
-
) !default;
|
|
35
|
+
$card-solid-unmerged-body-background-color: var(--#{$prefix}background-color) !default;
|
|
38
36
|
$card-solid-unmerged-body-color: null !default;
|
|
39
37
|
|
|
40
38
|
// Solid variant - Unmerged - Footer
|
|
@@ -49,15 +47,11 @@ $card-subtle-box-shadow: null !default;
|
|
|
49
47
|
|
|
50
48
|
// Subtle variant - Unmerged
|
|
51
49
|
$card-subtle-unmerged-box-shadow: null !default;
|
|
52
|
-
$card-subtle-unmerged-separator-border-color: var(
|
|
53
|
-
--#{$prefix}accent-a4
|
|
54
|
-
) !default;
|
|
50
|
+
$card-subtle-unmerged-separator-border-color: var(--#{$prefix}accent-a4) !default;
|
|
55
51
|
$card-subtle-unmerged-header-separator-border-color: transparent !default;
|
|
56
52
|
|
|
57
53
|
// Subtle variant - Unmerged - Body
|
|
58
|
-
$card-subtle-unmerged-body-background-color: var(
|
|
59
|
-
--#{$prefix}background-color
|
|
60
|
-
) !default;
|
|
54
|
+
$card-subtle-unmerged-body-background-color: var(--#{$prefix}background-color) !default;
|
|
61
55
|
$card-subtle-unmerged-body-color: null !default;
|
|
62
56
|
|
|
63
57
|
// Subtle variant - Unmerged - Footer
|
|
@@ -91,9 +85,7 @@ $card-ghost-box-shadow: none !default;
|
|
|
91
85
|
|
|
92
86
|
// Ghost variant - Unmerged
|
|
93
87
|
$card-ghost-unmerged-box-shadow: null !default;
|
|
94
|
-
$card-ghost-unmerged-separator-border-color: var(
|
|
95
|
-
--#{$prefix}accent-a4
|
|
96
|
-
) !default;
|
|
88
|
+
$card-ghost-unmerged-separator-border-color: var(--#{$prefix}accent-a4) !default;
|
|
97
89
|
$card-ghost-unmerged-header-separator-border-color: null !default;
|
|
98
90
|
|
|
99
91
|
// Ghost variant - Unmerged - Body
|
|
@@ -24,10 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
@include declare-var(--#{$prefix}card-padding-y, $card-padding-y);
|
|
26
26
|
@include declare-var(--#{$prefix}card-padding-x, $card-padding-x);
|
|
27
|
-
@include declare-var(
|
|
28
|
-
--#{$prefix}card-merged-section-padding-y,
|
|
29
|
-
$card-merged-section-padding-y
|
|
30
|
-
);
|
|
27
|
+
@include declare-var(--#{$prefix}card-merged-section-padding-y, $card-merged-section-padding-y);
|
|
31
28
|
|
|
32
29
|
// Card parts
|
|
33
30
|
& > :is(&__header, &__body, &__footer),
|
|
@@ -63,10 +60,7 @@
|
|
|
63
60
|
> #{$tabs-tab-list-root} {
|
|
64
61
|
flex-grow: 1;
|
|
65
62
|
z-index: var(--#{$prefix}z-index-docked);
|
|
66
|
-
margin: calc(
|
|
67
|
-
var(--#{$prefix}card-padding-y) * -1 +
|
|
68
|
-
$card-tabs-tab-list-margin-y-offset
|
|
69
|
-
)
|
|
63
|
+
margin: calc(var(--#{$prefix}card-padding-y) * -1 + $card-tabs-tab-list-margin-y-offset)
|
|
70
64
|
calc(var(--#{$prefix}card-padding-x) * -1);
|
|
71
65
|
padding-left: max(
|
|
72
66
|
var(--#{$prefix}card-padding-x) - var(--#{$prefix}tabs-tab-padding-x),
|
|
@@ -116,10 +110,7 @@
|
|
|
116
110
|
> #{$collapsible-content}:not(:first-child)
|
|
117
111
|
> :is(#{$card}__header, #{$card}__body, #{$card}__footer) {
|
|
118
112
|
border-top: $card-unmerged-separator-border-width solid
|
|
119
|
-
var(
|
|
120
|
-
--#{$prefix}card-unmerged-separator-border-color,
|
|
121
|
-
var(--#{$prefix}card-border-color)
|
|
122
|
-
);
|
|
113
|
+
var(--#{$prefix}card-unmerged-separator-border-color, var(--#{$prefix}card-border-color));
|
|
123
114
|
}
|
|
124
115
|
|
|
125
116
|
// Width of header separator
|
|
@@ -132,10 +123,7 @@
|
|
|
132
123
|
> :is(#{$card}__body, #{$card}__footer):first-child {
|
|
133
124
|
border-top-color: var(
|
|
134
125
|
--#{$prefix}card-unmerged-header-separator-border-color,
|
|
135
|
-
var(
|
|
136
|
-
--#{$prefix}card-unmerged-separator-border-color,
|
|
137
|
-
var(--#{$prefix}card-border-color)
|
|
138
|
-
)
|
|
126
|
+
var(--#{$prefix}card-unmerged-separator-border-color, var(--#{$prefix}card-border-color))
|
|
139
127
|
);
|
|
140
128
|
}
|
|
141
129
|
|
|
@@ -170,8 +158,7 @@
|
|
|
170
158
|
@include accessible-transition();
|
|
171
159
|
|
|
172
160
|
:is(#{$card}__header, #{$card}__body, #{$card}__footer) {
|
|
173
|
-
padding: var(--#{$prefix}card-merged-section-padding-y)
|
|
174
|
-
var(--#{$prefix}card-padding-x);
|
|
161
|
+
padding: var(--#{$prefix}card-merged-section-padding-y) var(--#{$prefix}card-padding-x);
|
|
175
162
|
}
|
|
176
163
|
|
|
177
164
|
> :is(#{$card}__header, #{$card}__body, #{$card}__footer),
|
|
@@ -183,8 +170,7 @@
|
|
|
183
170
|
}
|
|
184
171
|
|
|
185
172
|
> :is(#{$card}__header, #{$card}__body, #{$card}__footer),
|
|
186
|
-
> #{$collapsible-content}:last-child
|
|
187
|
-
> :is(#{$card}__header, #{$card}__body, #{$card}__footer) {
|
|
173
|
+
> #{$collapsible-content}:last-child > :is(#{$card}__header, #{$card}__body, #{$card}__footer) {
|
|
188
174
|
&:last-child {
|
|
189
175
|
padding-bottom: var(--#{$prefix}card-padding-y);
|
|
190
176
|
}
|
|
@@ -202,10 +188,7 @@
|
|
|
202
188
|
--#{$prefix}card-background-color,
|
|
203
189
|
map.get($card-background-color-by-variant, $variant)
|
|
204
190
|
);
|
|
205
|
-
@include declare-var(
|
|
206
|
-
--#{$prefix}card-color,
|
|
207
|
-
map.get($card-color-by-variant, $variant)
|
|
208
|
-
);
|
|
191
|
+
@include declare-var(--#{$prefix}card-color, map.get($card-color-by-variant, $variant));
|
|
209
192
|
@include declare-var(
|
|
210
193
|
--#{$prefix}card-box-shadow,
|
|
211
194
|
map.get($card-box-shadow-by-variant, $variant)
|
|
@@ -222,10 +205,7 @@
|
|
|
222
205
|
);
|
|
223
206
|
@include declare-var(
|
|
224
207
|
--#{$prefix}card-unmerged-header-separator-border-color,
|
|
225
|
-
map.get(
|
|
226
|
-
$card-unmerged-header-separator-border-color-by-variant,
|
|
227
|
-
$variant
|
|
228
|
-
)
|
|
208
|
+
map.get($card-unmerged-header-separator-border-color-by-variant, $variant)
|
|
229
209
|
);
|
|
230
210
|
|
|
231
211
|
// Variants - Unmerged - Body
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
|
|
10
10
|
&[data-orientation="vertical"] {
|
|
11
|
-
@include declare-var(
|
|
12
|
-
--#{$prefix}animation-height,
|
|
13
|
-
var(--radix-collapsible-content-height)
|
|
14
|
-
);
|
|
11
|
+
@include declare-var(--#{$prefix}animation-height, var(--radix-collapsible-content-height));
|
|
15
12
|
|
|
16
13
|
&[data-state="open"] {
|
|
17
14
|
@include accessible-animation(
|
|
@@ -29,10 +26,7 @@
|
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
&[data-orientation="horizontal"] {
|
|
32
|
-
@include declare-var(
|
|
33
|
-
--#{$prefix}animation-width,
|
|
34
|
-
var(--radix-collapsible-content-width)
|
|
35
|
-
);
|
|
29
|
+
@include declare-var(--#{$prefix}animation-width, var(--radix-collapsible-content-width));
|
|
36
30
|
|
|
37
31
|
&[data-state="open"] {
|
|
38
32
|
@include accessible-animation(
|
|
@@ -26,9 +26,7 @@ $command-menu-dialog-xl-width: $dialog-xl-width !default;
|
|
|
26
26
|
// Search
|
|
27
27
|
$command-menu-search-separator-width: $command-menu-border-width !default;
|
|
28
28
|
$command-menu-search-separator-color: var(--#{$prefix}neutral-7) !default;
|
|
29
|
-
$command-menu-search-padding-y: calc(
|
|
30
|
-
$menu-item-margin-y + $menu-item-padding-y
|
|
31
|
-
) !default;
|
|
29
|
+
$command-menu-search-padding-y: calc($menu-item-margin-y + $menu-item-padding-y) !default;
|
|
32
30
|
|
|
33
31
|
// List
|
|
34
32
|
$command-menu-list-max-height: 490px !default;
|
|
@@ -48,9 +46,7 @@ $command-menu-spinner-font-size: var(--#{$prefix}font-size-lg) !default;
|
|
|
48
46
|
|
|
49
47
|
// Empty message
|
|
50
48
|
$command-menu-empty-message-padding-y: $menu-item-padding-y !default;
|
|
51
|
-
$command-menu-empty-message-padding-x: calc(
|
|
52
|
-
$menu-item-margin-x + $menu-item-padding-x
|
|
53
|
-
) !default;
|
|
49
|
+
$command-menu-empty-message-padding-x: calc($menu-item-margin-x + $menu-item-padding-x) !default;
|
|
54
50
|
$command-menu-empty-message-color: var(--#{$prefix}neutral-a10) !default;
|
|
55
51
|
$command-menu-empty-message-text-align: null !default;
|
|
56
52
|
|
|
@@ -29,10 +29,7 @@
|
|
|
29
29
|
box-shadow: $command-menu-dialog-box-shadow;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
@include declare-var(
|
|
33
|
-
--#{$prefix}animation-transform,
|
|
34
|
-
$command-menu-dialog-animation-transform
|
|
35
|
-
);
|
|
32
|
+
@include declare-var(--#{$prefix}animation-transform, $command-menu-dialog-animation-transform);
|
|
36
33
|
|
|
37
34
|
&[data-state="open"] {
|
|
38
35
|
@include accessible-animation(
|
|
@@ -59,8 +56,7 @@
|
|
|
59
56
|
&__search-root {
|
|
60
57
|
width: auto !important;
|
|
61
58
|
height: auto !important;
|
|
62
|
-
border-bottom: $command-menu-search-separator-width solid
|
|
63
|
-
$command-menu-search-separator-color;
|
|
59
|
+
border-bottom: $command-menu-search-separator-width solid $command-menu-search-separator-color;
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
&__search-root {
|
|
@@ -83,9 +79,7 @@
|
|
|
83
79
|
padding-bottom: $command-menu-search-padding-y !important;
|
|
84
80
|
|
|
85
81
|
&:first-child {
|
|
86
|
-
padding-left: calc(
|
|
87
|
-
$menu-padding-x + $menu-item-margin-x + $menu-item-padding-x
|
|
88
|
-
);
|
|
82
|
+
padding-left: calc($menu-padding-x + $menu-item-margin-x + $menu-item-padding-x);
|
|
89
83
|
}
|
|
90
84
|
}
|
|
91
85
|
|
|
@@ -99,8 +93,7 @@
|
|
|
99
93
|
}
|
|
100
94
|
|
|
101
95
|
&:last-child {
|
|
102
|
-
margin: 0
|
|
103
|
-
calc($menu-padding-x + $menu-item-margin-x + $menu-item-padding-x) 0
|
|
96
|
+
margin: 0 calc($menu-padding-x + $menu-item-margin-x + $menu-item-padding-x) 0
|
|
104
97
|
calc($menu-item-icon-margin-x - $menu-item-padding-x) !important;
|
|
105
98
|
}
|
|
106
99
|
}
|
|
@@ -144,8 +137,7 @@
|
|
|
144
137
|
}
|
|
145
138
|
|
|
146
139
|
&__empty-message {
|
|
147
|
-
padding: $command-menu-empty-message-padding-y
|
|
148
|
-
$command-menu-empty-message-padding-x;
|
|
140
|
+
padding: $command-menu-empty-message-padding-y $command-menu-empty-message-padding-x;
|
|
149
141
|
color: $command-menu-empty-message-color;
|
|
150
142
|
text-align: $command-menu-empty-message-text-align;
|
|
151
143
|
font-size: $menu-item-font-size;
|
|
@@ -45,27 +45,19 @@ $control-addon-focus-outline-color: var(--#{$prefix}neutral-8) !default;
|
|
|
45
45
|
$control-addon-focus-status-outline-color: var(--#{$prefix}accent-8) !default;
|
|
46
46
|
|
|
47
47
|
// Default variant - Button - Hover
|
|
48
|
-
$control-addon-button-hover-background-color: var(
|
|
49
|
-
--#{$prefix}neutral-a3
|
|
50
|
-
) !default;
|
|
48
|
+
$control-addon-button-hover-background-color: var(--#{$prefix}neutral-a3) !default;
|
|
51
49
|
$control-addon-button-hover-color: null !default;
|
|
52
50
|
|
|
53
51
|
// Default variant - Button - Hover + Status
|
|
54
|
-
$control-addon-button-hover-status-background-color: var(
|
|
55
|
-
--#{$prefix}accent-a3
|
|
56
|
-
) !default;
|
|
52
|
+
$control-addon-button-hover-status-background-color: var(--#{$prefix}accent-a3) !default;
|
|
57
53
|
$control-addon-button-hover-status-color: null !default;
|
|
58
54
|
|
|
59
55
|
// Default variant - Button - Active
|
|
60
|
-
$control-addon-button-active-background-color: var(
|
|
61
|
-
--#{$prefix}neutral-a4
|
|
62
|
-
) !default;
|
|
56
|
+
$control-addon-button-active-background-color: var(--#{$prefix}neutral-a4) !default;
|
|
63
57
|
$control-addon-button-active-color: null !default;
|
|
64
58
|
|
|
65
59
|
// Default variant - Button - Active + Status
|
|
66
|
-
$control-addon-button-active-status-background-color: var(
|
|
67
|
-
--#{$prefix}accent-a4
|
|
68
|
-
) !default;
|
|
60
|
+
$control-addon-button-active-status-background-color: var(--#{$prefix}accent-a4) !default;
|
|
69
61
|
$control-addon-button-active-status-color: null !default;
|
|
70
62
|
|
|
71
63
|
// Default variant - Read-only
|