@salutejs/plasma-new-hope 0.338.0-canary.2284.18491659303.0 → 0.338.0-dev.0
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/cjs/components/Autocomplete/Autocomplete.css +2 -0
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +2 -0
- package/cjs/components/Combobox/ComboboxOld/Combobox.css +2 -0
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +2 -0
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +2 -0
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +2 -0
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +2 -0
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +2 -0
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -0
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +2 -0
- package/cjs/components/Dropdown/Dropdown.css +2 -0
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -0
- package/cjs/components/InformationWrapper/InformationWrapper.css +2 -0
- package/cjs/components/InformationWrapper/ui/Label/Label.css +2 -0
- package/cjs/components/Pagination/Pagination.css +2 -0
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -0
- package/cjs/components/Popover/Popover.css +4 -0
- package/cjs/components/Popover/Popover.js +10 -2
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.css +5 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.js +80 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.js.map +1 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.styles.js +79 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.styles.js.map +1 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.styles_1cnlydo.css +5 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.tokens.js +30 -0
- package/cjs/components/ProgressBarCircular/ProgressBarCircular.tokens.js.map +1 -0
- package/cjs/components/ProgressBarCircular/variations/_size/base.js +9 -0
- package/cjs/components/ProgressBarCircular/variations/_size/base.js.map +1 -0
- package/cjs/components/ProgressBarCircular/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/ProgressBarCircular/variations/_view/base.js +9 -0
- package/cjs/components/ProgressBarCircular/variations/_view/base.js.map +1 -0
- package/cjs/components/ProgressBarCircular/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Range/Range.css +2 -0
- package/cjs/components/Select/Select.css +2 -0
- package/cjs/components/Select/ui/Target/Target.css +2 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -0
- package/cjs/components/Slider/Slider.css +2 -0
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -0
- package/cjs/components/Table/Table.css +2 -0
- package/cjs/components/Table/Table.js +34 -27
- package/cjs/components/Table/Table.js.map +1 -1
- package/cjs/components/Table/ui/Cell/Cell.css +2 -0
- package/cjs/components/Table/ui/Cell/Cell.js +5 -3
- package/cjs/components/Table/ui/Cell/Cell.js.map +1 -1
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +2 -0
- package/cjs/components/Table/ui/EditableCell/EditableCell.js +4 -3
- package/cjs/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +2 -0
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +2 -0
- package/cjs/components/TextArea/ui/Hint/Hint.css +2 -0
- package/cjs/components/TextField/ui/Hint/Hint.css +2 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +2 -0
- package/cjs/components/TimePicker/TimePicker.css +2 -0
- package/cjs/components/_Resizable/Resizable.css +3 -0
- package/cjs/components/_Resizable/Resizable.js +87 -0
- package/cjs/components/_Resizable/Resizable.js.map +1 -0
- package/cjs/components/_Resizable/Resizable.styles.js +19 -0
- package/cjs/components/_Resizable/Resizable.styles.js.map +1 -0
- package/cjs/components/_Resizable/Resizable.styles_1l85rp0.css +1 -0
- package/cjs/components/_Resizable/Resizable.tokens.js +16 -0
- package/cjs/components/_Resizable/Resizable.tokens.js.map +1 -0
- package/cjs/components/_Resizable/utils/getHandleStyles.js +40 -0
- package/cjs/components/_Resizable/utils/getHandleStyles.js.map +1 -0
- package/cjs/components/_Resizable/utils/getRatioBasedOnPlacement.js +38 -0
- package/cjs/components/_Resizable/utils/getRatioBasedOnPlacement.js.map +1 -0
- package/cjs/components/_Resizable/utils/getResizeDirections.js +73 -0
- package/cjs/components/_Resizable/utils/getResizeDirections.js.map +1 -0
- package/cjs/index.css +8 -0
- package/cjs/index.js +5 -0
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Popover/Popover.js +10 -2
- package/emotion/cjs/components/ProgressBarCircular/ProgressBarCircular.js +178 -0
- package/emotion/cjs/components/ProgressBarCircular/ProgressBarCircular.styles.js +67 -0
- package/emotion/cjs/components/ProgressBarCircular/ProgressBarCircular.tokens.js +40 -0
- package/emotion/cjs/components/ProgressBarCircular/ProgressBarCircular.types.js +4 -0
- package/emotion/cjs/components/ProgressBarCircular/index.js +23 -0
- package/emotion/cjs/components/ProgressBarCircular/variations/_size/base.js +12 -0
- package/emotion/cjs/components/ProgressBarCircular/variations/_view/base.js +12 -0
- package/emotion/cjs/components/Table/Table.js +16 -11
- package/emotion/cjs/components/Table/ui/Cell/Cell.js +31 -3
- package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.js +31 -3
- package/emotion/cjs/components/_Icon/index.js +4 -0
- package/emotion/cjs/components/_Resizable/Resizable.js +120 -0
- package/emotion/cjs/components/_Resizable/Resizable.styles.js +22 -0
- package/emotion/cjs/components/_Resizable/Resizable.tokens.js +19 -0
- package/emotion/cjs/components/_Resizable/Resizable.types.js +4 -0
- package/emotion/cjs/components/_Resizable/index.js +19 -0
- package/emotion/cjs/components/_Resizable/utils/getHandleStyles.js +68 -0
- package/emotion/cjs/components/_Resizable/utils/getRatioBasedOnPlacement.js +54 -0
- package/emotion/cjs/components/_Resizable/utils/getResizeDirections.js +82 -0
- package/emotion/cjs/components/_Resizable/utils/index.js +27 -0
- package/emotion/cjs/examples/components/ProgressBarCircular/ProgressBarCircular.config.js +38 -0
- package/emotion/cjs/examples/components/ProgressBarCircular/ProgressBarCircular.js +15 -0
- package/emotion/cjs/index.js +1 -0
- package/emotion/es/components/Popover/Popover.js +10 -2
- package/emotion/es/components/ProgressBarCircular/ProgressBarCircular.js +119 -0
- package/emotion/es/components/ProgressBarCircular/ProgressBarCircular.styles.js +35 -0
- package/emotion/es/components/ProgressBarCircular/ProgressBarCircular.tokens.js +22 -0
- package/emotion/es/components/ProgressBarCircular/ProgressBarCircular.types.js +1 -0
- package/emotion/es/components/ProgressBarCircular/index.js +2 -0
- package/emotion/es/components/ProgressBarCircular/variations/_size/base.js +2 -0
- package/emotion/es/components/ProgressBarCircular/variations/_view/base.js +2 -0
- package/emotion/es/components/Table/Table.js +16 -11
- package/emotion/es/components/Table/ui/Cell/Cell.js +31 -3
- package/emotion/es/components/Table/ui/EditableCell/EditableCell.js +31 -3
- package/emotion/es/components/_Icon/index.js +1 -0
- package/emotion/es/components/_Resizable/Resizable.js +69 -0
- package/emotion/es/components/_Resizable/Resizable.styles.js +7 -0
- package/emotion/es/components/_Resizable/Resizable.tokens.js +9 -0
- package/emotion/es/components/_Resizable/Resizable.types.js +1 -0
- package/emotion/es/components/_Resizable/index.js +2 -0
- package/emotion/es/components/_Resizable/utils/getHandleStyles.js +58 -0
- package/emotion/es/components/_Resizable/utils/getRatioBasedOnPlacement.js +44 -0
- package/emotion/es/components/_Resizable/utils/getResizeDirections.js +72 -0
- package/emotion/es/components/_Resizable/utils/index.js +4 -0
- package/emotion/es/examples/components/ProgressBarCircular/ProgressBarCircular.config.js +28 -0
- package/emotion/es/examples/components/ProgressBarCircular/ProgressBarCircular.js +5 -0
- package/emotion/es/index.js +1 -0
- package/es/components/Autocomplete/Autocomplete.css +2 -0
- package/es/components/Combobox/ComboboxNew/Combobox.css +2 -0
- package/es/components/Combobox/ComboboxOld/Combobox.css +2 -0
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +2 -0
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +2 -0
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +2 -0
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +2 -0
- package/es/components/DatePicker/RangeDate/RangeDate.css +2 -0
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -0
- package/es/components/DatePicker/SingleDate/SingleDate.css +2 -0
- package/es/components/Dropdown/Dropdown.css +2 -0
- package/es/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -0
- package/es/components/InformationWrapper/InformationWrapper.css +2 -0
- package/es/components/InformationWrapper/ui/Label/Label.css +2 -0
- package/es/components/Pagination/Pagination.css +2 -0
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -0
- package/es/components/Popover/Popover.css +4 -0
- package/es/components/Popover/Popover.js +10 -2
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/ProgressBarCircular/ProgressBarCircular.css +5 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.js +71 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.js.map +1 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.styles.js +71 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.styles.js.map +1 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.styles_1cnlydo.css +5 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.tokens.js +25 -0
- package/es/components/ProgressBarCircular/ProgressBarCircular.tokens.js.map +1 -0
- package/es/components/ProgressBarCircular/variations/_size/base.js +5 -0
- package/es/components/ProgressBarCircular/variations/_size/base.js.map +1 -0
- package/es/components/ProgressBarCircular/variations/_size/base_x642ct.css +1 -0
- package/es/components/ProgressBarCircular/variations/_view/base.js +5 -0
- package/es/components/ProgressBarCircular/variations/_view/base.js.map +1 -0
- package/es/components/ProgressBarCircular/variations/_view/base_x642ct.css +1 -0
- package/es/components/Range/Range.css +2 -0
- package/es/components/Select/Select.css +2 -0
- package/es/components/Select/ui/Target/Target.css +2 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -0
- package/es/components/Slider/Slider.css +2 -0
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -0
- package/es/components/Table/Table.css +2 -0
- package/es/components/Table/Table.js +34 -27
- package/es/components/Table/Table.js.map +1 -1
- package/es/components/Table/ui/Cell/Cell.css +2 -0
- package/es/components/Table/ui/Cell/Cell.js +5 -3
- package/es/components/Table/ui/Cell/Cell.js.map +1 -1
- package/es/components/Table/ui/EditableCell/EditableCell.css +2 -0
- package/es/components/Table/ui/EditableCell/EditableCell.js +5 -4
- package/es/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
- package/es/components/Table/ui/HeadCell/HeadCell.css +2 -0
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +2 -0
- package/es/components/TextArea/ui/Hint/Hint.css +2 -0
- package/es/components/TextField/ui/Hint/Hint.css +2 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +2 -0
- package/es/components/TimePicker/TimePicker.css +2 -0
- package/es/components/_Resizable/Resizable.css +3 -0
- package/es/components/_Resizable/Resizable.js +79 -0
- package/es/components/_Resizable/Resizable.js.map +1 -0
- package/es/components/_Resizable/Resizable.styles.js +15 -0
- package/es/components/_Resizable/Resizable.styles.js.map +1 -0
- package/es/components/_Resizable/Resizable.styles_1l85rp0.css +1 -0
- package/es/components/_Resizable/Resizable.tokens.js +12 -0
- package/es/components/_Resizable/Resizable.tokens.js.map +1 -0
- package/es/components/_Resizable/utils/getHandleStyles.js +36 -0
- package/es/components/_Resizable/utils/getHandleStyles.js.map +1 -0
- package/es/components/_Resizable/utils/getRatioBasedOnPlacement.js +34 -0
- package/es/components/_Resizable/utils/getRatioBasedOnPlacement.js.map +1 -0
- package/es/components/_Resizable/utils/getResizeDirections.js +69 -0
- package/es/components/_Resizable/utils/getResizeDirections.js.map +1 -0
- package/es/index.css +8 -0
- package/es/index.js +2 -0
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Popover/Popover.js +10 -2
- package/styled-components/cjs/components/ProgressBarCircular/ProgressBarCircular.js +178 -0
- package/styled-components/cjs/components/ProgressBarCircular/ProgressBarCircular.styles.js +128 -0
- package/styled-components/cjs/components/ProgressBarCircular/ProgressBarCircular.tokens.js +40 -0
- package/styled-components/cjs/components/ProgressBarCircular/ProgressBarCircular.types.js +4 -0
- package/styled-components/cjs/components/ProgressBarCircular/index.js +23 -0
- package/styled-components/cjs/components/ProgressBarCircular/variations/_size/base.js +14 -0
- package/styled-components/cjs/components/ProgressBarCircular/variations/_view/base.js +14 -0
- package/styled-components/cjs/components/Table/Table.js +16 -11
- package/styled-components/cjs/components/Table/ui/Cell/Cell.js +31 -3
- package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.js +31 -3
- package/styled-components/cjs/components/_Icon/index.js +4 -0
- package/styled-components/cjs/components/_Resizable/Resizable.js +120 -0
- package/styled-components/cjs/components/_Resizable/Resizable.styles.js +28 -0
- package/styled-components/cjs/components/_Resizable/Resizable.tokens.js +19 -0
- package/styled-components/cjs/components/_Resizable/Resizable.types.js +4 -0
- package/styled-components/cjs/components/_Resizable/index.js +19 -0
- package/styled-components/cjs/components/_Resizable/utils/getHandleStyles.js +68 -0
- package/styled-components/cjs/components/_Resizable/utils/getRatioBasedOnPlacement.js +54 -0
- package/styled-components/cjs/components/_Resizable/utils/getResizeDirections.js +82 -0
- package/styled-components/cjs/components/_Resizable/utils/index.js +27 -0
- package/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/styled-components/cjs/examples/components/ProgressBarCircular/ProgressBarCircular.config.js +164 -0
- package/styled-components/cjs/examples/components/ProgressBarCircular/ProgressBarCircular.js +15 -0
- package/styled-components/cjs/index.js +1 -0
- package/styled-components/es/components/Popover/Popover.js +10 -2
- package/styled-components/es/components/ProgressBarCircular/ProgressBarCircular.js +119 -0
- package/styled-components/es/components/ProgressBarCircular/ProgressBarCircular.styles.js +61 -0
- package/styled-components/es/components/ProgressBarCircular/ProgressBarCircular.tokens.js +22 -0
- package/styled-components/es/components/ProgressBarCircular/ProgressBarCircular.types.js +1 -0
- package/styled-components/es/components/ProgressBarCircular/index.js +2 -0
- package/styled-components/es/components/ProgressBarCircular/variations/_size/base.js +4 -0
- package/styled-components/es/components/ProgressBarCircular/variations/_view/base.js +4 -0
- package/styled-components/es/components/Table/Table.js +16 -11
- package/styled-components/es/components/Table/ui/Cell/Cell.js +31 -3
- package/styled-components/es/components/Table/ui/EditableCell/EditableCell.js +31 -3
- package/styled-components/es/components/_Icon/index.js +1 -0
- package/styled-components/es/components/_Resizable/Resizable.js +69 -0
- package/styled-components/es/components/_Resizable/Resizable.styles.js +13 -0
- package/styled-components/es/components/_Resizable/Resizable.tokens.js +9 -0
- package/styled-components/es/components/_Resizable/Resizable.types.js +1 -0
- package/styled-components/es/components/_Resizable/index.js +2 -0
- package/styled-components/es/components/_Resizable/utils/getHandleStyles.js +58 -0
- package/styled-components/es/components/_Resizable/utils/getRatioBasedOnPlacement.js +44 -0
- package/styled-components/es/components/_Resizable/utils/getResizeDirections.js +72 -0
- package/styled-components/es/components/_Resizable/utils/index.js +4 -0
- package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
- package/styled-components/es/examples/components/ProgressBarCircular/ProgressBarCircular.config.js +154 -0
- package/styled-components/es/examples/components/ProgressBarCircular/ProgressBarCircular.js +5 -0
- package/styled-components/es/index.js +1 -0
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +13 -0
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/ProgressBarCircular/ProgressBarCircular.d.ts +23 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.styles.d.ts +11 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.styles.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.tokens.d.ts +23 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.tokens.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.types.d.ts +35 -0
- package/types/components/ProgressBarCircular/ProgressBarCircular.types.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/index.d.ts +4 -0
- package/types/components/ProgressBarCircular/index.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/variations/_size/base.d.ts +2 -0
- package/types/components/ProgressBarCircular/variations/_size/base.d.ts.map +1 -0
- package/types/components/ProgressBarCircular/variations/_view/base.d.ts +2 -0
- package/types/components/ProgressBarCircular/variations/_view/base.d.ts.map +1 -0
- package/types/components/Table/Table.d.ts.map +1 -1
- package/types/components/Table/Table.types.d.ts +88 -3
- package/types/components/Table/Table.types.d.ts.map +1 -1
- package/types/components/Table/ui/Cell/Cell.d.ts +2 -0
- package/types/components/Table/ui/Cell/Cell.d.ts.map +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts +2 -0
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts.map +1 -1
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/components/_Resizable/Resizable.d.ts +4 -0
- package/types/components/_Resizable/Resizable.d.ts.map +1 -0
- package/types/components/_Resizable/Resizable.styles.d.ts +2 -0
- package/types/components/_Resizable/Resizable.styles.d.ts.map +1 -0
- package/types/components/_Resizable/Resizable.tokens.d.ts +10 -0
- package/types/components/_Resizable/Resizable.tokens.d.ts.map +1 -0
- package/types/components/_Resizable/Resizable.types.d.ts +72 -0
- package/types/components/_Resizable/Resizable.types.d.ts.map +1 -0
- package/types/components/_Resizable/index.d.ts +3 -0
- package/types/components/_Resizable/index.d.ts.map +1 -0
- package/types/components/_Resizable/utils/getHandleStyles.d.ts +37 -0
- package/types/components/_Resizable/utils/getHandleStyles.d.ts.map +1 -0
- package/types/components/_Resizable/utils/getRatioBasedOnPlacement.d.ts +5 -0
- package/types/components/_Resizable/utils/getRatioBasedOnPlacement.d.ts.map +1 -0
- package/types/components/_Resizable/utils/getResizeDirections.d.ts +14 -0
- package/types/components/_Resizable/utils/getResizeDirections.d.ts.map +1 -0
- package/types/components/_Resizable/utils/index.d.ts +5 -0
- package/types/components/_Resizable/utils/index.d.ts.map +1 -0
- package/types/examples/components/ProgressBarCircular/ProgressBarCircular.config.d.ts +27 -0
- package/types/examples/components/ProgressBarCircular/ProgressBarCircular.config.d.ts.map +1 -0
- package/types/examples/components/ProgressBarCircular/ProgressBarCircular.d.ts +21 -0
- package/types/examples/components/ProgressBarCircular/ProgressBarCircular.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/types/index.d.ts +1 -0
- package/types/types/index.d.ts.map +1 -1
|
@@ -32,7 +32,8 @@ var EditableCell = function EditableCell(_ref) {
|
|
|
32
32
|
cell = _ref.cell,
|
|
33
33
|
borderVariant = _ref.borderVariant,
|
|
34
34
|
table = _ref.table,
|
|
35
|
-
selected = _ref.selected
|
|
35
|
+
selected = _ref.selected,
|
|
36
|
+
additionalProps = _ref.additionalProps;
|
|
36
37
|
var _useState = React.useState(cell.getValue()),
|
|
37
38
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
38
39
|
value = _useState2[0],
|
|
@@ -82,7 +83,7 @@ var EditableCell = function EditableCell(_ref) {
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
|
-
return /*#__PURE__*/React__default.default.createElement(EditableCell_styles.Td, {
|
|
86
|
+
return /*#__PURE__*/React__default.default.createElement(EditableCell_styles.Td, _rollupPluginBabelHelpers.extends({
|
|
86
87
|
key: cell.id,
|
|
87
88
|
borderVariant: borderVariant,
|
|
88
89
|
selectionCell: cell.column.id === Table.SELECT_COLUMN_ID,
|
|
@@ -91,7 +92,7 @@ var EditableCell = function EditableCell(_ref) {
|
|
|
91
92
|
selected: selected,
|
|
92
93
|
view: view,
|
|
93
94
|
ref: ref
|
|
94
|
-
}, /*#__PURE__*/React__default.default.createElement(EditableCell_styles.InnerWrapper, null, editingMode ? /*#__PURE__*/React__default.default.createElement(EditableCell_styles.EditModeWrapper, null, /*#__PURE__*/React__default.default.createElement(EditableCell_styles.InputWrapper, null, /*#__PURE__*/React__default.default.createElement(EditableCell_styles.Input, {
|
|
95
|
+
}, additionalProps), /*#__PURE__*/React__default.default.createElement(EditableCell_styles.InnerWrapper, null, editingMode ? /*#__PURE__*/React__default.default.createElement(EditableCell_styles.EditModeWrapper, null, /*#__PURE__*/React__default.default.createElement(EditableCell_styles.InputWrapper, null, /*#__PURE__*/React__default.default.createElement(EditableCell_styles.Input, {
|
|
95
96
|
value: value,
|
|
96
97
|
onChange: handleChange,
|
|
97
98
|
autoFocus: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableCell.js","sources":["../../../../../src/components/Table/ui/EditableCell/EditableCell.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\nimport { flexRender, Table, Cell as CellType } from '@tanstack/react-table';\nimport { useOutsideClick } from 'src/hooks';\n\nimport { Resizer } from '../../Table.styles';\nimport { SELECT_COLUMN_ID } from '../../Table';\nimport { IconEditOutline, IconResetOutline, IconDoneCircleOutline } from '../../../_Icon';\nimport { getIconSize } from '../HeadCell/HeadCell';\nimport { classes } from '../../Table.tokens';\nimport { TableProps, TableRowData } from '../../Table.types';\n\nimport {\n ContentWrapper,\n Td,\n IconDoneButton,\n Input,\n InnerWrapper,\n InputWrapper,\n EditModeWrapper,\n IconResetButton,\n} from './EditableCell.styles';\n\nconst keys = {\n Enter: 'Enter',\n Tab: 'Tab',\n Escape: 'Escape',\n};\n\ntype Props = {\n size: TableProps['size'];\n view: TableProps['view'];\n cell: CellType<TableRowData, unknown>;\n borderVariant: TableProps['borderVariant'];\n selected: boolean;\n table: Table<TableRowData>;\n};\n\nexport const EditableCell: React.FC<Props> = ({
|
|
1
|
+
{"version":3,"file":"EditableCell.js","sources":["../../../../../src/components/Table/ui/EditableCell/EditableCell.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\nimport type { HTMLAttributes, TdHTMLAttributes } from 'react';\nimport { flexRender, Table, Cell as CellType } from '@tanstack/react-table';\nimport { useOutsideClick } from 'src/hooks';\n\nimport { Resizer } from '../../Table.styles';\nimport { SELECT_COLUMN_ID } from '../../Table';\nimport { IconEditOutline, IconResetOutline, IconDoneCircleOutline } from '../../../_Icon';\nimport { getIconSize } from '../HeadCell/HeadCell';\nimport { classes } from '../../Table.tokens';\nimport { TableProps, TableRowData } from '../../Table.types';\n\nimport {\n ContentWrapper,\n Td,\n IconDoneButton,\n Input,\n InnerWrapper,\n InputWrapper,\n EditModeWrapper,\n IconResetButton,\n} from './EditableCell.styles';\n\nconst keys = {\n Enter: 'Enter',\n Tab: 'Tab',\n Escape: 'Escape',\n};\n\ntype Props = {\n size: TableProps['size'];\n view: TableProps['view'];\n cell: CellType<TableRowData, unknown>;\n borderVariant: TableProps['borderVariant'];\n selected: boolean;\n table: Table<TableRowData>;\n additionalProps: HTMLAttributes<any> & TdHTMLAttributes<any>;\n};\n\nexport const EditableCell: React.FC<Props> = ({\n size,\n view,\n cell,\n borderVariant,\n table,\n selected,\n additionalProps,\n}) => {\n const [value, setValue] = useState<string>(cell.getValue() as string);\n const [editingMode, setEditingMode] = useState(false);\n\n const updateData = table.options.meta?.updateData;\n\n const ref = useRef<HTMLTableCellElement>(null);\n\n useOutsideClick(() => {\n setEditingMode(false);\n }, [ref]);\n\n const handleEditClick = (e: React.MouseEvent<HTMLSpanElement>) => {\n e.stopPropagation();\n\n setEditingMode(true);\n setValue(cell.getValue() as string);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => setValue(e.target.value);\n\n const handleReset = () => {\n setValue(cell.getValue() as string);\n };\n\n const handleSubmit = (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n\n if (updateData) {\n updateData(cell.row.id, cell.column.id, value);\n }\n setEditingMode(false);\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n switch (event.code) {\n case keys.Enter: {\n if (updateData) {\n updateData(cell.row.id, cell.column.id, value);\n }\n\n setEditingMode(false);\n\n break;\n }\n\n case keys.Escape:\n case keys.Tab: {\n setEditingMode(false);\n\n break;\n }\n\n default: {\n break;\n }\n }\n };\n\n return (\n <Td\n key={cell.id}\n borderVariant={borderVariant}\n selectionCell={cell.column.id === SELECT_COLUMN_ID}\n onClick={handleEditClick}\n editingMode={editingMode}\n selected={selected}\n view={view}\n ref={ref}\n {...additionalProps}\n >\n <InnerWrapper>\n {editingMode ? (\n <EditModeWrapper>\n <InputWrapper>\n {/* eslint-disable-next-line jsx-a11y/no-autofocus */}\n <Input value={value} onChange={handleChange} autoFocus onKeyDown={handleKeyDown} />\n\n <IconResetButton onClick={handleReset} tabIndex={-1}>\n <IconResetOutline size={getIconSize(size)} />\n </IconResetButton>\n </InputWrapper>\n\n <IconDoneButton onClick={handleSubmit} tabIndex={-1}>\n <IconDoneCircleOutline size={getIconSize(size)} />\n </IconDoneButton>\n </EditModeWrapper>\n ) : (\n <ContentWrapper>\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n\n <IconEditOutline size=\"xs\" className={classes.editIcon} color=\"var(--text-secondary)\" />\n </ContentWrapper>\n )}\n </InnerWrapper>\n\n {cell.column.getIsResizing() && <Resizer isResizing />}\n </Td>\n );\n};\n"],"names":["keys","Enter","Tab","Escape","EditableCell","_ref","_table$options$meta","size","view","cell","borderVariant","table","selected","additionalProps","_useState","useState","getValue","_useState2","_slicedToArray","value","setValue","_useState3","_useState4","editingMode","setEditingMode","updateData","options","meta","ref","useRef","useOutsideClick","handleEditClick","e","stopPropagation","handleChange","target","handleReset","handleSubmit","row","id","column","handleKeyDown","event","code","React","createElement","Td","_extends","key","selectionCell","SELECT_COLUMN_ID","onClick","InnerWrapper","EditModeWrapper","InputWrapper","Input","onChange","autoFocus","onKeyDown","IconResetButton","tabIndex","IconResetOutline","getIconSize","IconDoneButton","IconDoneCircleOutline","ContentWrapper","flexRender","columnDef","getContext","IconEditOutline","className","classes","editIcon","color","getIsResizing","_Resizer","Resizer","isResizing"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,IAAI,GAAG;AACTC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAA;AACZ,CAAC,CAAA;IAYYC,YAA6B,GAAG,SAAhCA,YAA6BA,CAAAC,IAAA,EAQpC;AAAA,EAAA,IAAAC,mBAAA,CAAA;AAAA,EAAA,IAPFC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IACJC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,eAAe,GAAAR,IAAA,CAAfQ,eAAe,CAAA;EAEf,IAAAC,SAAA,GAA0BC,cAAQ,CAASN,IAAI,CAACO,QAAQ,EAAY,CAAC;IAAAC,UAAA,GAAAC,uCAAA,CAAAJ,SAAA,EAAA,CAAA,CAAA;AAA9DK,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACtB,EAAA,IAAA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,KAAAC,QAAA,KAAAA,QAAA,gBAAI/B,sBAAA,CAAAC,aAAA,CAAC+B,oBAAO,EAAA;IAACC,UAAU,EAAA,IAAA;GAAE,CAAC,EACtD,CAAC,CAAA;AAEb;;;;"}
|
|
@@ -115,6 +115,8 @@
|
|
|
115
115
|
|
|
116
116
|
.base_z7a2uf_b10o15xy__b340e41b .base_z7a2uf_hgy0im1__b340e41b{--plasma-tooltip-padding-top:var(--plasma-textfield__tooltip-padding-top);--plasma-tooltip-padding-right:var(--plasma-textfield__tooltip-padding-right);--plasma-tooltip-padding-bottom:var(--plasma-textfield__tooltip-padding-bottom);--plasma-tooltip-padding-left:var(--plasma-textfield__tooltip-padding-left);--plasma-tooltip-min-height:var(--plasma-textfield__tooltip-min-height);--plasma-tooltip-border-radius:var(--plasma-textfield__tooltip-border-radius);--plasma-tooltip-text-font-family:var(--plasma-textfield__tooltip-text-font-family);--plasma-tooltip-text-font-size:var(--plasma-textfield__tooltip-text-font-size);--plasma-tooltip-text-font-style:var(--plasma-textfield__tooltip-text-font-style);--plasma-tooltip-text-font-weight:var(--plasma-textfield__tooltip-text-font-weight);--plasma-tooltip-text-font-letter-spacing:var(--plasma-textfield__tooltip-text-font-letter-spacing);--plasma-tooltip-text-font-line-height:var(--plasma-textfield__tooltip-text-font-line-height);--plasma-tooltip-content-left-margin:var(--plasma-textfield__tooltip-content-left-margin);--plasma-tooltip-arrow-mask-width:var(--plasma-textfield__tooltip-arrow-mask-width);--plasma-tooltip-arrow-mask-height:var(--plasma-textfield__tooltip-arrow-mask-height);--plasma-tooltip-arrow-mask-image:var(--plasma-textfield__tooltip-arrow-mask-image);--plasma-tooltip-arrow-height:var(--plasma-textfield__tooltip-arrow-height);--plasma-tooltip-arrow-edge-margin:var(--plasma-textfield__tooltip-arrow-edge-margin);--plasma-tooltip-arrow-background:var(--plasma-textfield__tooltip-arrow-background);}
|
|
117
117
|
|
|
118
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
119
|
+
|
|
118
120
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
119
121
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
120
122
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -115,6 +115,8 @@
|
|
|
115
115
|
|
|
116
116
|
.base_z7a2uf_b10o15xy__b340e41b .base_z7a2uf_hgy0im1__b340e41b{--plasma-tooltip-padding-top:var(--plasma-textfield__tooltip-padding-top);--plasma-tooltip-padding-right:var(--plasma-textfield__tooltip-padding-right);--plasma-tooltip-padding-bottom:var(--plasma-textfield__tooltip-padding-bottom);--plasma-tooltip-padding-left:var(--plasma-textfield__tooltip-padding-left);--plasma-tooltip-min-height:var(--plasma-textfield__tooltip-min-height);--plasma-tooltip-border-radius:var(--plasma-textfield__tooltip-border-radius);--plasma-tooltip-text-font-family:var(--plasma-textfield__tooltip-text-font-family);--plasma-tooltip-text-font-size:var(--plasma-textfield__tooltip-text-font-size);--plasma-tooltip-text-font-style:var(--plasma-textfield__tooltip-text-font-style);--plasma-tooltip-text-font-weight:var(--plasma-textfield__tooltip-text-font-weight);--plasma-tooltip-text-font-letter-spacing:var(--plasma-textfield__tooltip-text-font-letter-spacing);--plasma-tooltip-text-font-line-height:var(--plasma-textfield__tooltip-text-font-line-height);--plasma-tooltip-content-left-margin:var(--plasma-textfield__tooltip-content-left-margin);--plasma-tooltip-arrow-mask-width:var(--plasma-textfield__tooltip-arrow-mask-width);--plasma-tooltip-arrow-mask-height:var(--plasma-textfield__tooltip-arrow-mask-height);--plasma-tooltip-arrow-mask-image:var(--plasma-textfield__tooltip-arrow-mask-image);--plasma-tooltip-arrow-height:var(--plasma-textfield__tooltip-arrow-height);--plasma-tooltip-arrow-edge-margin:var(--plasma-textfield__tooltip-arrow-edge-margin);--plasma-tooltip-arrow-background:var(--plasma-textfield__tooltip-arrow-background);}
|
|
117
117
|
|
|
118
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
119
|
+
|
|
118
120
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
119
121
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
120
122
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
2
|
+
|
|
1
3
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
2
4
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
3
5
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
2
|
+
|
|
1
3
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
2
4
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
3
5
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
.TextFieldChip_styles_8puilg_s32p7ut__f1ecfcd9{--plasma-chip-color:var(--plasma-textfield__chip-color);--plasma-chip-background:var(--plasma-textfield__chip-background);--plasma-chip-color-hover:var(--plasma-textfield__chip-color-hover);--plasma-chip-background-hover:var(--plasma-textfield__chip-background-hover);--plasma-chip-color-active:var(--plasma-textfield__chip-color-active);--plasma-chip-background-active:var(--plasma-textfield__chip-background-active);--plasma-chip-background-readonly:var(--plasma-textfield__chip-background-readonly);--plasma-chip-color-readonly:var(--plasma-textfield__chip-color-readonly);--plasma-chip-background-readonly-hover:var(--plasma-textfield__chip-background-readonly-hover);--plasma-chip-color-readonly-hover:var(--plasma-textfield__chip-color-readonly-hover);--plasma-chip-border-radius:var(--plasma-textfield__chip-border-radius);--plasma-chip-width:var(--plasma-textfield__chip-width);--plasma-chip-height:var(--plasma-textfield__chip-height);--plasma-chip-padding:var(--plasma-textfield__chip-padding);--plasma-chip-font-family:var(--plasma-textfield__chip-font-family);--plasma-chip-font-size:var(--plasma-textfield__chip-font-size);--plasma-chip-font-style:var(--plasma-textfield__chip-font-style);--plasma-chip-font-weight:var(--plasma-textfield__chip-font-weight);--plasma-chip-letter-spacing:var(--plasma-textfield__chip-letter-spacing);--plasma-chip-lineheight:var(--plasma-textfield__chip-line-height);--plasma-chip-clear-content-margin-left:var(--plasma-textfield__chip-clear-content-margin-left);--plasma-chip-clear-content-margin-right:var(--plasma-textfield__chip-clear-content-margin-right);--plasma-chip-close-icon-size:var(--plasma-textfield__chip-close-icon-size);--plasma-chip-close-icon-color:var(--plasma-textfield__chip-close-icon-color);--plasma-chip-close-icon-color-hover:var(--plasma-textfield__chip-close-icon-color-hover);--plasma-chip-focus-color:var(--plasma-textfield-focus-color);-webkit-scroll-snap-align:center;-moz-scroll-snap-align:center;-ms-scroll-snap-align:center;scroll-snap-align:center;-webkit-scroll-snap-stop:normal;-moz-scroll-snap-stop:normal;-ms-scroll-snap-stop:normal;scroll-snap-stop:normal;position:relative;}.TextFieldChip_styles_8puilg_s32p7ut__f1ecfcd9::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_8puilg_s32p7ut__f1ecfcd9.TextFieldChip_styles_8puilg_focusVisible__f1ecfcd9:focus::before,.TextFieldChip_styles_8puilg_s32p7ut__f1ecfcd9[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_8puilg_s32p7ut__f1ecfcd9[readonly]{opacity:var(--plasma-textfield__chip-opacity-readonly);}
|
|
22
22
|
.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9{display:block;-webkit-flex:none;-ms-flex:none;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(--plasma-textfield-font-family);font-size:var(--plasma-textfield-font-size);font-style:var(--plasma-textfield-font-style);font-weight:var(--plasma-textfield-font-weight);-webkit-letter-spacing:var(--plasma-textfield-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-letter-spacing);letter-spacing:var(--plasma-textfield-letter-spacing);line-height:var(--plasma-textfield-line-height);color:var(--plasma-textfield-color);position:relative;}.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9.TextFieldChip_styles_8puilg_focusVisible__f1ecfcd9:focus::before,.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9:after{content:',';}.TextFieldChip_styles_8puilg_t4nir3h__f1ecfcd9:last-child:after{content:'';}
|
|
23
23
|
|
|
24
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
25
|
+
|
|
24
26
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
25
27
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
26
28
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -70,6 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
.TextField_1lzb2r1_bpunezx__7d079491{display:block;}
|
|
72
72
|
|
|
73
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
74
|
+
|
|
73
75
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
74
76
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
75
77
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
|
|
2
|
+
|
|
3
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var reResizable = require('re-resizable');
|
|
7
|
+
var Resizable_tokens = require('./Resizable.tokens.js');
|
|
8
|
+
var Resizable_styles = require('./Resizable.styles.js');
|
|
9
|
+
var getResizeDirections = require('./utils/getResizeDirections.js');
|
|
10
|
+
var getRatioBasedOnPlacement = require('./utils/getRatioBasedOnPlacement.js');
|
|
11
|
+
var getHandleStyles = require('./utils/getHandleStyles.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
16
|
+
|
|
17
|
+
var Resizable = function Resizable(_ref) {
|
|
18
|
+
var _resizable$hiddenIcon, _resizable$icons, _resizable$hiddenIcon2, _resizable$icons2, _resizable$hiddenIcon3, _resizable$icons3, _resizable$hiddenIcon4, _resizable$icons4;
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
outerResizable = _ref.resizable,
|
|
21
|
+
placement = _ref.placement,
|
|
22
|
+
onResizeStart = _ref.onResizeStart,
|
|
23
|
+
onResizeEnd = _ref.onResizeEnd;
|
|
24
|
+
var resizableContainer = React.useRef(null);
|
|
25
|
+
var resizable = typeof outerResizable === 'boolean' ? {
|
|
26
|
+
disabled: !outerResizable
|
|
27
|
+
} : outerResizable;
|
|
28
|
+
var handleResizeStart = function handleResizeStart() {
|
|
29
|
+
if (resizableContainer !== null && resizableContainer !== void 0 && resizableContainer.current && resizableContainer.current.resizable) {
|
|
30
|
+
resizableContainer.current.resizable.classList.toggle(Resizable_tokens.classes.resizableContainerNoSelect);
|
|
31
|
+
if (onResizeStart) {
|
|
32
|
+
onResizeStart(resizableContainer);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var handleResizeEnd = function handleResizeEnd() {
|
|
37
|
+
if (resizableContainer !== null && resizableContainer !== void 0 && resizableContainer.current && resizableContainer.current.resizable) {
|
|
38
|
+
resizableContainer.current.resizable.classList.toggle(Resizable_tokens.classes.resizableContainerNoSelect);
|
|
39
|
+
if (onResizeEnd) {
|
|
40
|
+
onResizeEnd(resizableContainer);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
if (!resizable || resizable.disabled) {
|
|
45
|
+
return /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, children);
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/React__default.default.createElement(reResizable.Resizable, {
|
|
48
|
+
ref: resizableContainer,
|
|
49
|
+
enable: resizable && !resizable.disabled ? getResizeDirections.getResizeDirections(resizable.directions) : false,
|
|
50
|
+
resizeRatio: getRatioBasedOnPlacement.getRatioBasedOnPlacement(placement),
|
|
51
|
+
defaultSize: resizable === null || resizable === void 0 ? void 0 : resizable.defaultSize,
|
|
52
|
+
minWidth: resizable === null || resizable === void 0 ? void 0 : resizable.minWidth,
|
|
53
|
+
minHeight: resizable === null || resizable === void 0 ? void 0 : resizable.minHeight,
|
|
54
|
+
maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
|
|
55
|
+
maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight,
|
|
56
|
+
onResizeStart: handleResizeStart,
|
|
57
|
+
onResizeStop: handleResizeEnd,
|
|
58
|
+
handleComponent: {
|
|
59
|
+
topRight: resizable !== null && resizable !== void 0 && (_resizable$hiddenIcon = resizable.hiddenIcons) !== null && _resizable$hiddenIcon !== void 0 && _resizable$hiddenIcon.includes('top-right') ? undefined : /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, (resizable === null || resizable === void 0 || (_resizable$icons = resizable.icons) === null || _resizable$icons === void 0 ? void 0 : _resizable$icons.topRight) || /*#__PURE__*/React__default.default.createElement(Resizable_styles.IconResizeDiagonalStyled, {
|
|
60
|
+
className: Resizable_tokens.classes.resizableTopRightIcon,
|
|
61
|
+
color: "inherit",
|
|
62
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
|
63
|
+
})),
|
|
64
|
+
bottomRight: resizable !== null && resizable !== void 0 && (_resizable$hiddenIcon2 = resizable.hiddenIcons) !== null && _resizable$hiddenIcon2 !== void 0 && _resizable$hiddenIcon2.includes('bottom-right') ? undefined : /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, (resizable === null || resizable === void 0 || (_resizable$icons2 = resizable.icons) === null || _resizable$icons2 === void 0 ? void 0 : _resizable$icons2.bottomRight) || /*#__PURE__*/React__default.default.createElement(Resizable_styles.IconResizeDiagonalStyled, {
|
|
65
|
+
className: Resizable_tokens.classes.resizableBottomRightIcon,
|
|
66
|
+
color: "inherit",
|
|
67
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
|
68
|
+
})),
|
|
69
|
+
bottomLeft: resizable !== null && resizable !== void 0 && (_resizable$hiddenIcon3 = resizable.hiddenIcons) !== null && _resizable$hiddenIcon3 !== void 0 && _resizable$hiddenIcon3.includes('bottom-left') ? undefined : /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, (resizable === null || resizable === void 0 || (_resizable$icons3 = resizable.icons) === null || _resizable$icons3 === void 0 ? void 0 : _resizable$icons3.bottomLeft) || /*#__PURE__*/React__default.default.createElement(Resizable_styles.IconResizeDiagonalStyled, {
|
|
70
|
+
className: Resizable_tokens.classes.resizableBottomLeftIcon,
|
|
71
|
+
color: "inherit",
|
|
72
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
|
73
|
+
})),
|
|
74
|
+
topLeft: resizable !== null && resizable !== void 0 && (_resizable$hiddenIcon4 = resizable.hiddenIcons) !== null && _resizable$hiddenIcon4 !== void 0 && _resizable$hiddenIcon4.includes('top-left') ? undefined : /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, (resizable === null || resizable === void 0 || (_resizable$icons4 = resizable.icons) === null || _resizable$icons4 === void 0 ? void 0 : _resizable$icons4.topLeft) || /*#__PURE__*/React__default.default.createElement(Resizable_styles.IconResizeDiagonalStyled, {
|
|
75
|
+
className: Resizable_tokens.classes.resizableTopLeftIcon,
|
|
76
|
+
color: "inherit",
|
|
77
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
|
78
|
+
}))
|
|
79
|
+
},
|
|
80
|
+
className: Resizable_tokens.classes.resizableContainer,
|
|
81
|
+
handleStyles: getHandleStyles.getHandleStyles(),
|
|
82
|
+
handleWrapperClass: Resizable_tokens.classes.resizableHandleWrapper
|
|
83
|
+
}, children);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.Resizable = Resizable;
|
|
87
|
+
//# sourceMappingURL=Resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resizable.js","sources":["../../../src/components/_Resizable/Resizable.tsx"],"sourcesContent":["import React, { useRef, FC, PropsWithChildren } from 'react';\nimport { Resizable as ReResizable } from 're-resizable';\nimport type { Resizable as ResizableType } from 're-resizable';\n\nimport { getHandleStyles, getRatioBasedOnPlacement, getResizeDirections } from './utils';\nimport { classes } from './Resizable.tokens';\nimport type { ResizableProps } from './Resizable.types';\nimport { IconResizeDiagonalStyled } from './Resizable.styles';\n\nexport const Resizable: FC<PropsWithChildren<ResizableProps>> = ({\n children,\n resizable: outerResizable,\n placement,\n onResizeStart,\n onResizeEnd,\n}) => {\n const resizableContainer = useRef<ResizableType>(null);\n\n const resizable = typeof outerResizable === 'boolean' ? { disabled: !outerResizable } : outerResizable;\n\n const handleResizeStart = () => {\n if (resizableContainer?.current && resizableContainer.current.resizable) {\n resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);\n\n if (onResizeStart) {\n onResizeStart(resizableContainer);\n }\n }\n };\n\n const handleResizeEnd = () => {\n if (resizableContainer?.current && resizableContainer.current.resizable) {\n resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);\n\n if (onResizeEnd) {\n onResizeEnd(resizableContainer);\n }\n }\n };\n\n if (!resizable || resizable.disabled) {\n return <>{children}</>;\n }\n\n return (\n <ReResizable\n ref={resizableContainer}\n enable={resizable && !resizable.disabled ? getResizeDirections(resizable.directions) : false}\n resizeRatio={getRatioBasedOnPlacement(placement)}\n defaultSize={resizable?.defaultSize}\n minWidth={resizable?.minWidth}\n minHeight={resizable?.minHeight}\n maxWidth={resizable?.maxWidth}\n maxHeight={resizable?.maxHeight}\n onResizeStart={handleResizeStart}\n onResizeStop={handleResizeEnd}\n handleComponent={{\n topRight: resizable?.hiddenIcons?.includes('top-right') ? undefined : (\n <>\n {resizable?.icons?.topRight || (\n <IconResizeDiagonalStyled\n className={classes.resizableTopRightIcon}\n color=\"inherit\"\n size={resizable?.iconSize}\n />\n )}\n </>\n ),\n bottomRight: resizable?.hiddenIcons?.includes('bottom-right') ? undefined : (\n <>\n {resizable?.icons?.bottomRight || (\n <IconResizeDiagonalStyled\n className={classes.resizableBottomRightIcon}\n color=\"inherit\"\n size={resizable?.iconSize}\n />\n )}\n </>\n ),\n bottomLeft: resizable?.hiddenIcons?.includes('bottom-left') ? undefined : (\n <>\n {resizable?.icons?.bottomLeft || (\n <IconResizeDiagonalStyled\n className={classes.resizableBottomLeftIcon}\n color=\"inherit\"\n size={resizable?.iconSize}\n />\n )}\n </>\n ),\n topLeft: resizable?.hiddenIcons?.includes('top-left') ? undefined : (\n <>\n {resizable?.icons?.topLeft || (\n <IconResizeDiagonalStyled\n className={classes.resizableTopLeftIcon}\n color=\"inherit\"\n size={resizable?.iconSize}\n />\n )}\n </>\n ),\n }}\n className={classes.resizableContainer}\n handleStyles={getHandleStyles()}\n handleWrapperClass={classes.resizableHandleWrapper}\n >\n {children}\n </ReResizable>\n );\n};\n"],"names":["Resizable","_ref","_resizable$hiddenIcon","_resizable$icons","_resizable$hiddenIcon2","_resizable$icons2","_resizable$hiddenIcon3","_resizable$icons3","_resizable$hiddenIcon4","_resizable$icons4","children","outerResizable","resizable","placement","onResizeStart","onResizeEnd","resizableContainer","useRef","disabled","handleResizeStart","current","classList","toggle","classes","resizableContainerNoSelect","handleResizeEnd","React","createElement","Fragment","ReResizable","ref","enable","getResizeDirections","directions","resizeRatio","getRatioBasedOnPlacement","defaultSize","minWidth","minHeight","maxWidth","maxHeight","onResizeStop","handleComponent","topRight","hiddenIcons","includes","undefined","icons","IconResizeDiagonalStyled","className","resizableTopRightIcon","color","size","iconSize","bottomRight","resizableBottomRightIcon","bottomLeft","resizableBottomLeftIcon","topLeft","resizableTopLeftIcon","handleStyles","getHandleStyles","handleWrapperClass","resizableHandleWrapper"],"mappings":";;;;;;;;;;;;;;;;IASaA,SAAgD,GAAG,SAAnDA,SAAgDA,CAAAC,IAAA,EAMvD;AAAA,EAAA,IAAAC,qBAAA,EAAAC,gBAAA,EAAAC,sBAAA,EAAAC,iBAAA,EAAAC,sBAAA,EAAAC,iBAAA,EAAAC,sBAAA,EAAAC,iBAAA,CAAA;AAAA,EAAA,IALFC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;IACGC,cAAc,GAAAV,IAAA,CAAzBW,SAAS;IACTC,SAAS,GAAAZ,IAAA,CAATY,SAAS;IACTC,aAAa,GAAAb,IAAA,CAAba,aAAa;IACbC,WAAW,GAAAd,IAAA,CAAXc,WAAW,CAAA;AAEX,EAAA,IAAMC,kBAAkB,GAAGC,YAAM,CAAgB,IAAI,CAAC,CAAA;AAEtD,EAAA,IAAML,SAAS,GAAG,OAAOD,cAAc,KAAK,SAAS,GAAG;AAAEO,IAAAA,QAAQ,EAAE,CAACP,cAAAA;AAAe,GAAC,GAAGA,cAAc,CAAA;AAEtG,EAAA,IAAMQ,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAS;AAC5B,IAAA,IAAIH,kBAAkB,KAAA,IAAA,IAAlBA,kBAAkB,KAAA,KAAA,CAAA,IAAlBA,kBAAkB,CAAEI,OAAO,IAAIJ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AAE1B,wBAAO,CAACP,kBAAmB;IACtC4C,YAAY,EAAEC,+BAAe,EAAG;IAChCC,kBAAkB,EAAEvC,wBAAO,CAACwC,sBAAAA;AAAuB,GAAA,EAElDrD,QACQ,CAAC,CAAA;AAEtB;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require('./Resizable.styles_1l85rp0.css');
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var react = require('@linaria/react');
|
|
7
|
+
var IconResizeDiagonal = require('../_Icon/Icons/IconResizeDiagonal.js');
|
|
8
|
+
|
|
9
|
+
var _exp = function _exp() {
|
|
10
|
+
return IconResizeDiagonal.IconResizeDiagonal;
|
|
11
|
+
};
|
|
12
|
+
var IconResizeDiagonalStyled = /*#__PURE__*/react.styled(_exp())({
|
|
13
|
+
name: "IconResizeDiagonalStyled",
|
|
14
|
+
"class": "i1ebflu4",
|
|
15
|
+
propsAsIs: true
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.IconResizeDiagonalStyled = IconResizeDiagonalStyled;
|
|
19
|
+
//# sourceMappingURL=Resizable.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resizable.styles.js","sources":["../../../src/components/_Resizable/Resizable.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { IconResizeDiagonal } from 'src/components/_Icon';\n\nimport { classes } from './Resizable.tokens';\n\nexport const IconResizeDiagonalStyled = styled(IconResizeDiagonal)`\n color: var(--text-secondary);\n\n &:hover {\n color: var(--text-secondary-hover);\n }\n\n &:active {\n color: var(--text-secondary-active);\n }\n\n &.${classes.resizableTopRightIcon} {\n transform: rotate(-90deg);\n }\n\n &.${classes.resizableBottomRightIcon} {\n transform: rotate(0);\n }\n\n &.${classes.resizableBottomLeftIcon} {\n transform: rotate(90deg);\n }\n\n &.${classes.resizableTopLeftIcon} {\n transform: rotate(180deg);\n }\n`;\n"],"names":["_exp","IconResizeDiagonal","IconResizeDiagonalStyled","styled","name","class","propsAsIs"],"mappings":";;;;;;;AAC0D,IAAAA,IAAA,GAAxCA,SAAwCA,IAAAA,GAAA;AAAA,EAAA,OAIXC,qCAAkB,CAAA;AAAA,CAAA,CAAA;AAA1D,IAAMC,wBAAwB,gBAAGC,YAAM,CAAAH,IAAA,EAAA,CAAA,CAAA;AAAAI,EAAAA,IAAA,EAAA,0BAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA0B7C;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.i1ebflu4{color:var(--text-secondary);}.i1ebflu4:hover{color:var(--text-secondary-hover);}.i1ebflu4:active{color:var(--text-secondary-active);}.i1ebflu4.resizable-top-right-icon{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.i1ebflu4.resizable-bottom-right-icon{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.i1ebflu4.resizable-bottom-left-icon{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.i1ebflu4.resizable-top-left-icon{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var classes = {
|
|
6
|
+
resizableContainer: 'resizable-container',
|
|
7
|
+
resizableTopRightIcon: 'resizable-top-right-icon',
|
|
8
|
+
resizableBottomRightIcon: 'resizable-bottom-right-icon',
|
|
9
|
+
resizableBottomLeftIcon: 'resizable-bottom-left-icon',
|
|
10
|
+
resizableTopLeftIcon: 'resizable-top-left-icon',
|
|
11
|
+
resizableHandleWrapper: 'resizable-handle-wrapper',
|
|
12
|
+
resizableContainerNoSelect: 'resizable-container-no-select'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.classes = classes;
|
|
16
|
+
//# sourceMappingURL=Resizable.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resizable.tokens.js","sources":["../../../src/components/_Resizable/Resizable.tokens.ts"],"sourcesContent":["export const classes = {\n resizableContainer: 'resizable-container',\n resizableTopRightIcon: 'resizable-top-right-icon',\n resizableBottomRightIcon: 'resizable-bottom-right-icon',\n resizableBottomLeftIcon: 'resizable-bottom-left-icon',\n resizableTopLeftIcon: 'resizable-top-left-icon',\n resizableHandleWrapper: 'resizable-handle-wrapper',\n resizableContainerNoSelect: 'resizable-container-no-select',\n};\n"],"names":["classes","resizableContainer","resizableTopRightIcon","resizableBottomRightIcon","resizableBottomLeftIcon","resizableTopLeftIcon","resizableHandleWrapper","resizableContainerNoSelect"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,kBAAkB,EAAE,qBAAqB;AACzCC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA,wBAAwB,EAAE,6BAA6B;AACvDC,EAAAA,uBAAuB,EAAE,4BAA4B;AACrDC,EAAAA,oBAAoB,EAAE,yBAAyB;AAC/CC,EAAAA,sBAAsB,EAAE,0BAA0B;AAClDC,EAAAA,0BAA0B,EAAE,+BAAA;AAChC;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
|
|
7
|
+
// Объект стилей для handler'а, в котором находится иконка ресайза.
|
|
8
|
+
|
|
9
|
+
var base = {
|
|
10
|
+
width: 'auto',
|
|
11
|
+
height: 'auto',
|
|
12
|
+
lineHeight: '0'
|
|
13
|
+
};
|
|
14
|
+
var getHandleStyles = function getHandleStyles() {
|
|
15
|
+
return {
|
|
16
|
+
topRight: _rollupPluginBabelHelpers.objectSpread2({
|
|
17
|
+
top: '0',
|
|
18
|
+
right: '0',
|
|
19
|
+
transform: 'translate(50%, -50%)'
|
|
20
|
+
}, base),
|
|
21
|
+
bottomRight: _rollupPluginBabelHelpers.objectSpread2({
|
|
22
|
+
right: '0',
|
|
23
|
+
bottom: '0',
|
|
24
|
+
transform: 'translate(50%, 50%)'
|
|
25
|
+
}, base),
|
|
26
|
+
bottomLeft: _rollupPluginBabelHelpers.objectSpread2({
|
|
27
|
+
bottom: '0',
|
|
28
|
+
left: '0',
|
|
29
|
+
transform: 'translate(-50%, 50%)'
|
|
30
|
+
}, base),
|
|
31
|
+
topLeft: _rollupPluginBabelHelpers.objectSpread2({
|
|
32
|
+
top: '0',
|
|
33
|
+
left: '0',
|
|
34
|
+
transform: 'translate(-50%, -50%)'
|
|
35
|
+
}, base)
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.getHandleStyles = getHandleStyles;
|
|
40
|
+
//# sourceMappingURL=getHandleStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHandleStyles.js","sources":["../../../../src/components/_Resizable/utils/getHandleStyles.ts"],"sourcesContent":["// Объект стилей для handler'а, в котором находится иконка ресайза.\ninterface ReturnType {\n topRight: {\n width: string;\n height: string;\n top: string;\n right: string;\n transform: string;\n lineHeight: string;\n };\n bottomRight: {\n width: string;\n height: string;\n right: string;\n bottom: string;\n transform: string;\n lineHeight: string;\n };\n bottomLeft: {\n width: string;\n height: string;\n bottom: string;\n left: string;\n transform: string;\n lineHeight: string;\n };\n topLeft: {\n width: string;\n height: string;\n top: string;\n left: string;\n transform: string;\n lineHeight: string;\n };\n}\n\nconst base = {\n width: 'auto',\n height: 'auto',\n lineHeight: '0',\n};\n\nexport const getHandleStyles = (): ReturnType => ({\n topRight: {\n top: '0',\n right: '0',\n transform: 'translate(50%, -50%)',\n ...base,\n },\n bottomRight: {\n right: '0',\n bottom: '0',\n transform: 'translate(50%, 50%)',\n ...base,\n },\n bottomLeft: {\n bottom: '0',\n left: '0',\n transform: 'translate(-50%, 50%)',\n ...base,\n },\n topLeft: {\n top: '0',\n left: '0',\n transform: 'translate(-50%, -50%)',\n ...base,\n },\n});\n"],"names":["base","width","height","lineHeight","getHandleStyles","topRight","_objectSpread","top","right","transform","bottomRight","bottom","bottomLeft","left","topLeft"],"mappings":";;;;;;AAAA;;AAoCA,IAAMA,IAAI,GAAG;AACTC,EAAAA,KAAK,EAAE,MAAM;AACbC,EAAAA,MAAM,EAAE,MAAM;AACdC,EAAAA,UAAU,EAAE,GAAA;AAChB,CAAC,CAAA;AAEYC,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,GAAA;EAAA,OAAsB;AAC9CC,IAAAA,QAAQ,EAAAC,uCAAA,CAAA;AACJC,MAAAA,GAAG,EAAE,GAAG;AACRC,MAAAA,KAAK,EAAE,GAAG;AACVC,MAAAA,SAAS,EAAE,sBAAA;AAAsB,KAAA,EAC9BT,IAAI,CACV;AACDU,IAAAA,WAAW,EAAAJ,uCAAA,CAAA;AACPE,MAAAA,KAAK,EAAE,GAAG;AACVG,MAAAA,MAAM,EAAE,GAAG;AACXF,MAAAA,SAAS,EAAE,qBAAA;AAAqB,KAAA,EAC7BT,IAAI,CACV;AACDY,IAAAA,UAAU,EAAAN,uCAAA,CAAA;AACNK,MAAAA,MAAM,EAAE,GAAG;AACXE,MAAAA,IAAI,EAAE,GAAG;AACTJ,MAAAA,SAAS,EAAE,sBAAA;AAAsB,KAAA,EAC9BT,IAAI,CACV;AACDc,IAAAA,OAAO,EAAAR,uCAAA,CAAA;AACHC,MAAAA,GAAG,EAAE,GAAG;AACRM,MAAAA,IAAI,EAAE,GAAG;AACTJ,MAAAA,SAAS,EAAE,uBAAA;AAAuB,KAAA,EAC/BT,IAAI,CAAA;GAEd,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
// Горизонтальный и вертикальный множитель ресайза.
|
|
6
|
+
|
|
7
|
+
var getRatioBasedOnPlacement = function getRatioBasedOnPlacement(placement) {
|
|
8
|
+
switch (placement) {
|
|
9
|
+
case 'center':
|
|
10
|
+
{
|
|
11
|
+
return [2, 2];
|
|
12
|
+
}
|
|
13
|
+
case 'top':
|
|
14
|
+
case 'bottom':
|
|
15
|
+
{
|
|
16
|
+
return [2, 1];
|
|
17
|
+
}
|
|
18
|
+
case 'left':
|
|
19
|
+
case 'right':
|
|
20
|
+
{
|
|
21
|
+
return [1, 2];
|
|
22
|
+
}
|
|
23
|
+
case 'top-left':
|
|
24
|
+
case 'top-right':
|
|
25
|
+
case 'bottom-left':
|
|
26
|
+
case 'bottom-right':
|
|
27
|
+
{
|
|
28
|
+
return [1, 1];
|
|
29
|
+
}
|
|
30
|
+
default:
|
|
31
|
+
{
|
|
32
|
+
return [1, 1];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.getRatioBasedOnPlacement = getRatioBasedOnPlacement;
|
|
38
|
+
//# sourceMappingURL=getRatioBasedOnPlacement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRatioBasedOnPlacement.js","sources":["../../../../src/components/_Resizable/utils/getRatioBasedOnPlacement.ts"],"sourcesContent":["import { Placement } from '../Resizable.types';\n\n// Горизонтальный и вертикальный множитель ресайза.\ntype ReturnType = [number, number];\n\nexport const getRatioBasedOnPlacement = (placement?: Placement): ReturnType => {\n switch (placement) {\n case 'center': {\n return [2, 2];\n }\n\n case 'top':\n case 'bottom': {\n return [2, 1];\n }\n\n case 'left':\n case 'right': {\n return [1, 2];\n }\n\n case 'top-left':\n case 'top-right':\n case 'bottom-left':\n case 'bottom-right': {\n return [1, 1];\n }\n\n default: {\n return [1, 1];\n }\n }\n};\n"],"names":["getRatioBasedOnPlacement","placement"],"mappings":";;;;AAEA;;IAGaA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,SAAqB,EAAiB;AAC3E,EAAA,QAAQA,SAAS;AACb,IAAA,KAAK,QAAQ;AAAE,MAAA;AACX,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,KAAK,CAAA;AACV,IAAA,KAAK,QAAQ;AAAE,MAAA;AACX,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,MAAM,CAAA;AACX,IAAA,KAAK,OAAO;AAAE,MAAA;AACV,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,UAAU,CAAA;AACf,IAAA,KAAK,WAAW,CAAA;AAChB,IAAA,KAAK,aAAa,CAAA;AAClB,IAAA,KAAK,cAAc;AAAE,MAAA;AACjB,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA;AAAS,MAAA;AACL,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AACJ,GAAA;AACJ;;;;"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
|
|
7
|
+
var getResizeDirections = function getResizeDirections(directions) {
|
|
8
|
+
if (!directions) {
|
|
9
|
+
return {
|
|
10
|
+
top: true,
|
|
11
|
+
right: true,
|
|
12
|
+
bottom: true,
|
|
13
|
+
left: true,
|
|
14
|
+
topRight: true,
|
|
15
|
+
bottomRight: true,
|
|
16
|
+
bottomLeft: true,
|
|
17
|
+
topLeft: true
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
var result = {
|
|
21
|
+
top: false,
|
|
22
|
+
right: false,
|
|
23
|
+
bottom: false,
|
|
24
|
+
left: false,
|
|
25
|
+
topRight: false,
|
|
26
|
+
bottomRight: false,
|
|
27
|
+
bottomLeft: false,
|
|
28
|
+
topLeft: false
|
|
29
|
+
};
|
|
30
|
+
var _iterator = _rollupPluginBabelHelpers.createForOfIteratorHelper(directions),
|
|
31
|
+
_step;
|
|
32
|
+
try {
|
|
33
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
34
|
+
var dir = _step.value;
|
|
35
|
+
switch (dir) {
|
|
36
|
+
case 'top':
|
|
37
|
+
result.top = true;
|
|
38
|
+
break;
|
|
39
|
+
case 'right':
|
|
40
|
+
result.right = true;
|
|
41
|
+
break;
|
|
42
|
+
case 'bottom':
|
|
43
|
+
result.bottom = true;
|
|
44
|
+
break;
|
|
45
|
+
case 'left':
|
|
46
|
+
result.left = true;
|
|
47
|
+
break;
|
|
48
|
+
case 'top-right':
|
|
49
|
+
result.topRight = true;
|
|
50
|
+
break;
|
|
51
|
+
case 'top-left':
|
|
52
|
+
result.topLeft = true;
|
|
53
|
+
break;
|
|
54
|
+
case 'bottom-right':
|
|
55
|
+
result.bottomRight = true;
|
|
56
|
+
break;
|
|
57
|
+
case 'bottom-left':
|
|
58
|
+
result.bottomLeft = true;
|
|
59
|
+
break;
|
|
60
|
+
default:
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} catch (err) {
|
|
65
|
+
_iterator.e(err);
|
|
66
|
+
} finally {
|
|
67
|
+
_iterator.f();
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports.getResizeDirections = getResizeDirections;
|
|
73
|
+
//# sourceMappingURL=getResizeDirections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResizeDirections.js","sources":["../../../../src/components/_Resizable/utils/getResizeDirections.ts"],"sourcesContent":["import type { ResizeDirections } from '../Resizable.types';\n\ninterface Directions {\n top?: boolean;\n right?: boolean;\n bottom?: boolean;\n left?: boolean;\n topRight?: boolean;\n bottomRight?: boolean;\n bottomLeft?: boolean;\n topLeft?: boolean;\n}\n\nexport const getResizeDirections = (directions?: ResizeDirections): Directions => {\n if (!directions) {\n return {\n top: true,\n right: true,\n bottom: true,\n left: true,\n topRight: true,\n bottomRight: true,\n bottomLeft: true,\n topLeft: true,\n };\n }\n\n const result: Directions = {\n top: false,\n right: false,\n bottom: false,\n left: false,\n topRight: false,\n bottomRight: false,\n bottomLeft: false,\n topLeft: false,\n };\n\n for (const dir of directions) {\n switch (dir) {\n case 'top':\n result.top = true;\n break;\n case 'right':\n result.right = true;\n break;\n case 'bottom':\n result.bottom = true;\n break;\n case 'left':\n result.left = true;\n break;\n case 'top-right':\n result.topRight = true;\n break;\n case 'top-left':\n result.topLeft = true;\n break;\n case 'bottom-right':\n result.bottomRight = true;\n break;\n case 'bottom-left':\n result.bottomLeft = true;\n break;\n default:\n break;\n }\n }\n\n return result;\n};\n"],"names":["getResizeDirections","directions","top","right","bottom","left","topRight","bottomRight","bottomLeft","topLeft","result","_iterator","_createForOfIteratorHelper","_step","s","n","done","dir","value","err","e","f"],"mappings":";;;;;;IAaaA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,UAA6B,EAAiB;EAC9E,IAAI,CAACA,UAAU,EAAE;IACb,OAAO;AACHC,MAAAA,GAAG,EAAE,IAAI;AACTC,MAAAA,KAAK,EAAE,IAAI;AACXC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,IAAI,EAAE,IAAI;AACVC,MAAAA,QAAQ,EAAE,IAAI;AACdC,MAAAA,WAAW,EAAE,IAAI;AACjBC,MAAAA,UAAU,EAAE,IAAI;AAChBC,MAAAA,OAAO,EAAE,IAAA;KACZ,CAAA;AACL,GAAA;AAEA,EAAA,I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GAAG,IAAI,CAAA;AACxB,UAAA,MAAA;AACJ,QAAA;AACI,UAAA,MAAA;AACR,OAAA;AACJ,KAAA;AAAC,GAAA,CAAA,OAAAW,GAAA,EAAA;IAAAR,SAAA,CAAAS,CAAA,CAAAD,GAAA,CAAA,CAAA;AAAA,GAAA,SAAA;AAAAR,IAAAA,SAAA,CAAAU,CAAA,EAAA,CAAA;AAAA,GAAA;AAED,EAAA,OAAOX,MAAM,CAAA;AACjB;;;;"}
|
package/cjs/index.css
CHANGED
|
@@ -134,6 +134,8 @@
|
|
|
134
134
|
.Radiobox_styles_1u9zve5_s14xglkp__4723228a{width:var(--plasma-radiobox-ellipse-size);height:var(--plasma-radiobox-ellipse-size);border-radius:var(--plasma-radiobox-ellipse-size);background-color:var(--plasma-radiobox-ellipse-color);-webkit-transition:-webkit-transform 0.3s ease-in-out;-webkit-transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);}input:checked + label .Radiobox_styles_1u9zve5_s14xglkp__4723228a{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
|
|
135
135
|
.Radiobox_styles_1u9zve5_bdte4ex__4723228a{--plasma-checkbox-label-font-family:var(--plasma-radiobox-label-font-family);--plasma-checkbox-label-font-size:var(--plasma-radiobox-label-font-size);--plasma-checkbox-label-font-style:var(--plasma-radiobox-label-font-style);--plasma-checkbox-label-font-weight:var(--plasma-radiobox-label-font-weight);--plasma-checkbox-label-letter-spacing:var(--plasma-radiobox-label-letter-spacing);--plasma-checkbox-label-line-height:var(--plasma-radiobox-label-line-height);--plasma-checkbox-description-margin-top:var(--plasma-checkbox-description-margin-top);--plasma-checkbox-description-font-family:var(--plasma-radiobox-description-font-family);--plasma-checkbox-description-font-size:var(--plasma-radiobox-description-font-size);--plasma-checkbox-description-font-style:var(--plasma-radiobox-description-font-style);--plasma-checkbox-description-font-weight:var(--plasma-radiobox-description-font-weight);--plasma-checkbox-description-letter-spacing:var(--plasma-radiobox-description-letter-spacing);--plasma-checkbox-description-line-height:var(--plasma-radiobox-description-line-height);--plasma-checkbox-fill-color:var(--plasma-radiobox-fill-color);--plasma-checkbox-description-color:var(--plasma-radiobox-description-color);--plasma-checkbox-trigger-border-width:var(--plasma-checkbox-trigger-border-width);--plasma-checkbox-trigger-border-color:var(--plasma-radiobox-trigger-border-color);--plasma-checkbox-trigger-border-checked-color:var(--plasma-checkbox-trigger-border-checked-color);--plasma-checkbox-trigger-background-color:var(--plasma-radiobox-trigger-background-color);--plasma-checkbox-content-top-offset:var(--plasma-radiobox-content-top-offset);--plasma-checkbox-content-left-offset:var(--plasma-radiobox-content-left-offset);--plasma-checkbox-trigger-size:var(--plasma-radiobox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-radiobox-trigger-border-radius);--plasma-checkbox-trigger-padding:var(--plasma-radiobox-trigger-padding);margin:var(--plasma-radiobox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.Radiobox_styles_1u9zve5_bdte4ex__4723228a .Radiobox_styles_1u9zve5_singleLine__4723228a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
136
136
|
|
|
137
|
+
.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229{color:var(--text-secondary);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:hover{color:var(--text-secondary-hover);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229:active{color:var(--text-secondary-active);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopRightIcon__f3d6a229{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomRightIcon__f3d6a229{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableBottomLeftIcon__f3d6a229{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Resizable_styles_1l85rp0_i1ebflu4__f3d6a229.Resizable_styles_1l85rp0_resizableTopLeftIcon__f3d6a229{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
138
|
+
|
|
137
139
|
.Popover_styles_ji8em4_s1g1xbt5__439b9cc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
|
|
138
140
|
.Popover_styles_ji8em4_s12xwbyh__439b9cc0{display:inline-block;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0{position:absolute;top:0;left:0;width:100%;height:100%;}.Popover_styles_ji8em4_s12xwbyh__439b9cc0.Popover_styles_ji8em4_popoverTargetAsRef__439b9cc0 .Popover_styles_ji8em4_s1g1xbt5__439b9cc0{width:100%;height:100%;display:block;}
|
|
139
141
|
.Popover_styles_ji8em4_s1pd4d8a__439b9cc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_ji8em4_s1pd4d8a__439b9cc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
|
|
@@ -1148,6 +1150,12 @@
|
|
|
1148
1150
|
.Section_styles_147bzzp_a6i3xtj__60e0567c{margin:auto;}
|
|
1149
1151
|
.Section_styles_147bzzp_lnmmdxt__60e0567c{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
1150
1152
|
|
|
1153
|
+
.ProgressBarCircular_styles_1cnlydo_b18reh89__42dafeea{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;width:var(--plasma-progressbar-circular-height);height:var(--plasma-progressbar-circular-height);}
|
|
1154
|
+
.ProgressBarCircular_styles_1cnlydo_s2tt3b5__42dafeea{width:100%;height:100%;}
|
|
1155
|
+
.ProgressBarCircular_styles_1cnlydo_slvt37h__42dafeea{fill:none;r:var(--slvt37h-0);stroke:var(--plasma-progressbar-circular-background-stroke);stroke-width:var(--slvt37h-1);}
|
|
1156
|
+
.ProgressBarCircular_styles_1cnlydo_s1d8ncmi__42dafeea{--percentage:var(--s1d8ncmi-0);--radius:var(--s1d8ncmi-1);--circumference:calc(calc(2 * 3.1415926535) * var(--radius));--dashoffset:calc(var(--circumference) - (var(--percentage,0) * var(--circumference) / 100));fill:none;stroke:var(--plasma-progressbar-circular-progress-stroke);stroke-width:var(--s1d8ncmi-2);stroke-linecap:round;r:var(--radius);stroke-dasharray:var(--circumference);stroke-dashoffset:var(--dashoffset);-webkit-transition:stroke-dashoffset 0.3s ease-in-out;transition:stroke-dashoffset 0.3s ease-in-out;}
|
|
1157
|
+
.ProgressBarCircular_styles_1cnlydo_sg9aoc4__42dafeea{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:var(--plasma-progressbar-circular-content-color);font-family:var(--plasma-progressbar-circular-content-font-family);font-size:var(--plasma-progressbar-circular-content-font-size);font-style:var(--plasma-progressbar-circular-content-font-style);font-weight:var(--plasma-progressbar-circular-content-font-weight);-webkit-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);-moz-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);-ms-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);line-height:var(--plasma-progressbar-circular-content-line-height);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
|
1158
|
+
|
|
1151
1159
|
|
|
1152
1160
|
.TimePicker_styles_ar3obv_s1ghbm1p__3866631e{width:100%;--plasma-textfield-color:var(--plasma-time-picker-textfield-color);--plasma-textfield__placeholder-color:var(--plasma-time-picker-textfield-placeholder-color);--plasma-textfield__placeholder-color-focus:var(--plasma-timepicker-textfield__placeholder-color-focus);--plasma-textfield__caret-color:var(--plasma-time-picker-textfield-caret-color);--plasma-textfield-focus-color:var(--plasma-time-picker-textfield-focus-color);--plasma-textfield-bg-color:var(--plasma-time-picker-textfield-background-color);--plasma-textfield-bg-color-hover:var(--plasma-time-picker-textfield-background-color-hover);--plasma-textfield-bg-color-focus:var(--plasma-time-picker-textfield-background-color-focus);--plasma-textfield-border-color:var(--plasma-time-picker_range-border-color);--plasma-textfield-border-color-hover:var(--plasma-time-picker_range-border-color-hover);--plasma-textfield-border-color-focus:var(--plasma-time-picker_range-border-color-focus);--plasma-textfield-box-shadow:var(--plasma-time-picker-textfield-box-shadow);--plasma-textfield-color-readonly:var(--plasma-time-picker-textfield-color-readonly);--plasma-textfield-bg-color-readonly:var(--plasma-time-picker-textfield-background-color-readonly);--plasma-textfield-border-color-readonly:var(--plasma-time-picker-textfield-border-color-readonly);--plasma-textfield__placeholder-color-readonly:var(--plasma-time-picker-textfield-placeholder-color-readonly);--plasma-textfield-height:var(--plasma-time-picker-textfield-height);--plasma-textfield-border-width:var(--plasma-time-picker-textfield-border-width);--plasma-textfield-border-radius:var(--plasma-time-picker-textfield-border-radius);--plasma-textfield-padding:var(--plasma-time-picker-textfield-padding);--plasma-textfield-placement_inner__label-padding:var(--plasma-time-picker-placement_inner__label-padding);--plasma-textfield-placement_inner__content-padding:var(--plasma-time-picker-placement_inner__content-padding);--plasma-textfield__label-offset:var(--plasma-time-picker__label-offset);--plasma-textfield__label-font-family:var(--plasma-time-picker__label-font-family);--plasma-textfield__label-font-style:var(--plasma-time-picker__label-font-style);--plasma-textfield__label-font-size:var(--plasma-time-picker__label-font-size);--plasma-textfield__label-font-weight:var(--plasma-time-picker__label-font-weight);--plasma-textfield__label-letter-spacing:var(--plasma-time-picker__label-letter-spacing);--plasma-textfield__label-line-height:var(--plasma-time-picker__label-line-height);--plasma-textfield-placement_inner__label-font-family:var(--plasma-time-picker-placement_inner__label-font-family);--plasma-textfield-placement_inner__label-font-size:var(--plasma-time-picker-placement_inner__label-font-size);--plasma-textfield-placement_inner__label-font-style:var(--plasma-time-picker-placement_inner__label-font-style);--plasma-textfield-placement_inner__label-font-weight:var(--plasma-time-picker-placement_inner__label-font-weight);--plasma-textfield-placement_inner__label-letter-spacing:var(--plasma-time-picker-placement_inner__label-letter-spacing);--plasma-textfield-placement_inner__label-line-height:var(--plasma-time-picker-placement_inner__label-line-height);--plasma-textfield__label-color-readonly:var(--plasma-time-picker__label-color-readonly);--plasma-textfield__indicator-color:var(--plasma-time-picker__indicator-color);--plasma-textfield__indicator-size-inner:var(--plasma-time-picker__indicator-size);--plasma-textfield__indicator-size-outer:var(--plasma-time-picker__indicator-size-outer);--plasma-textfield__indicator-placement-inner:var(--plasma-time-picker__indicator-placement);--plasma-textfield__indicator-placement-outer:var(--plasma-time-picker__indicator-placement-outer);--plasma-textfield__indicator-placement-inner-right:var(--plasma-time-picker__indicator-placement-right);--plasma-textfield__indicator-placement-outer-right:var(--plasma-time-picker__indicator-placement-outer-right);--plasma-textfield__left-content-margin:var(--plasma-time-picker-textfield__left-content-margin);--plasma-textfield__right-content-margin:var(--plasma-time-picker-textfield__right-content-margin);--plasma-textfield-font-family:var(--plasma-time-picker-textfield-font-family);--plasma-textfield-font-size:var(--plasma-time-picker-textfield-font-size);--plasma-textfield-font-style:var(--plasma-time-picker-textfield-font-style);--plasma-textfield-font-weight:var(--plasma-time-picker-textfield-font-weight);--plasma-textfield-letter-spacing:var(--plasma-time-picker-textfield-letter-spacing);--plasma-textfield-line-height:var(--plasma-time-picker-textfield-line-height);--plasma-textfield-disabled-opacity:var(--plasma-time-picker-disabled-opacity);--plasma-textfield__before-text-color:var(--plasma-time-picker-textfield__before-text-color);--plasma-textfield__after-text-color:var(--plasma-time-picker-textfield__after-text-color);--plasma-textfield__before-text-margin:var(--plasma-time-picker-textfield__before-text-margin);--plasma-textfield__after-text-margin:var(--plasma-time-picker-textfield__after-text-margin);--plasma-textfield-content-slot-color:var(--plasma-time-picker-textfield__content-color,var(--plasma-time-picker-textfield-color));--plasma-textfield-content-right-slot-color:var(--plasma-time-picker-textfield__content-right-color,var(--plasma-textfield-content-slot-color));--plasma-textfield-content-right-slot-color-hover:var(--plasma-time-picker-textfield__content-right-color-hover,var(--plasma-textfield-content-right-slot-color));}.TimePicker_styles_ar3obv_s1ghbm1p__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerError__3866631e{--plasma-textfield-bg-color:var(--plasma-time-picker-textfield-background-color-error);--plasma-textfield-bg-color-hover:var(--plasma-time-picker-textfield-background-color-error-hover);--plasma-textfield-bg-color-focus:var(--plasma-time-picker-textfield-background-color-error-focus);--plasma-textfield-border-color:var(--plasma-time-picker-textfield-border-color-error);--plasma-textfield-border-color-hover:var(--plasma-time-picker-textfield-border-color-error-hover);--plasma-textfield-border-color-focus:var(--plasma-time-picker-textfield-border-color-error-focus);}.TimePicker_styles_ar3obv_s1ghbm1p__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerSuccess__3866631e{--plasma-textfield-bg-color:var(--plasma-time-picker-textfield-background-color-success);--plasma-textfield-bg-color-hover:var(--plasma-time-picker-textfield-background-color-success-hover);--plasma-textfield-bg-color-focus:var(--plasma-time-picker-textfield-background-color-success-focus);--plasma-textfield-border-color:var(--plasma-time-picker-textfield-border-color-success);--plasma-textfield-border-color-hover:var(--plasma-time-picker-textfield-border-color-success-hover);--plasma-textfield-border-color-focus:var(--plasma-time-picker-textfield-border-color-success-focus);}
|
|
1153
1161
|
.TimePicker_styles_ar3obv_b19h9m1x__3866631e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--plasma-time-picker-width);margin-top:var(--plasma-time-picker-dropdown-margin-top);}.TimePicker_styles_ar3obv_b19h9m1x__3866631e .TimePicker_styles_ar3obv_popoverWrapper__3866631e,.TimePicker_styles_ar3obv_b19h9m1x__3866631e .TimePicker_styles_ar3obv_popoverTarget__3866631e{width:inherit;}.TimePicker_styles_ar3obv_b19h9m1x__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerStretched__3866631e{width:100%;}.TimePicker_styles_ar3obv_b19h9m1x__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerStretched__3866631e .TimePicker_styles_ar3obv_popoverRoot__3866631e{width:100%;}.TimePicker_styles_ar3obv_b19h9m1x__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerFullWidth__3866631e{width:100%;}.TimePicker_styles_ar3obv_b19h9m1x__3866631e.TimePicker_styles_ar3obv_plasmaTimePickerPlacementRight__3866631e{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
package/cjs/index.js
CHANGED
|
@@ -263,6 +263,8 @@ var InformationWrapper = require('./components/InformationWrapper/InformationWra
|
|
|
263
263
|
var InformationWrapper_tokens = require('./components/InformationWrapper/InformationWrapper.tokens.js');
|
|
264
264
|
var NavigationDrawer = require('./components/NavigationDrawer/NavigationDrawer.js');
|
|
265
265
|
var NavigationDrawer_tokens = require('./components/NavigationDrawer/NavigationDrawer.tokens.js');
|
|
266
|
+
var ProgressBarCircular = require('./components/ProgressBarCircular/ProgressBarCircular.js');
|
|
267
|
+
var ProgressBarCircular_tokens = require('./components/ProgressBarCircular/ProgressBarCircular.tokens.js');
|
|
266
268
|
var TimePicker = require('./components/TimePicker/TimePicker.js');
|
|
267
269
|
var TimePicker_tokens = require('./components/TimePicker/TimePicker.tokens.js');
|
|
268
270
|
|
|
@@ -754,6 +756,9 @@ exports.informationWrapperTokens = InformationWrapper_tokens.tokens;
|
|
|
754
756
|
exports.navigationDrawerConfig = NavigationDrawer.navigationDrawerConfig;
|
|
755
757
|
exports.navigationDrawerRoot = NavigationDrawer.navigationDrawerRoot;
|
|
756
758
|
exports.navigationDrawerTokens = NavigationDrawer_tokens.tokens;
|
|
759
|
+
exports.progressBarCircularConfig = ProgressBarCircular.progressBarCircularConfig;
|
|
760
|
+
exports.progressBarCircularRoot = ProgressBarCircular.progressBarCircularRoot;
|
|
761
|
+
exports.progressBarCircularTokens = ProgressBarCircular_tokens.tokens;
|
|
757
762
|
exports.timePickerConfig = TimePicker.timePickerConfig;
|
|
758
763
|
exports.timePickerRoot = TimePicker.timePickerRoot;
|
|
759
764
|
exports.timePickerClasses = TimePicker_tokens.classes;
|