@salutejs/plasma-new-hope 0.261.0-canary.1756.13182478014.0 → 0.261.0-canary.1760.13180340956.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/cjs/components/Calendar/hooks/useCalendarDateChange.js.map +1 -1
- package/cjs/components/Calendar/store/reducer.js +3 -4
- package/cjs/components/Calendar/store/reducer.js.map +1 -1
- package/cjs/components/Calendar/store/types.js.map +1 -1
- package/cjs/components/Drawer/Drawer.css +5 -5
- package/cjs/components/Drawer/Drawer.js +5 -1
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/cjs/components/Panel/Panel.css +2 -2
- package/cjs/components/Panel/Panel.js +7 -6
- package/cjs/components/Panel/Panel.js.map +1 -1
- package/cjs/components/Panel/Panel.styles.js +12 -2
- package/cjs/components/Panel/Panel.styles.js.map +1 -1
- package/cjs/components/Panel/Panel.styles_1g0gq8z.css +1 -0
- package/cjs/components/Panel/Panel.tokens.js +15 -0
- package/cjs/components/Panel/Panel.tokens.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
- package/cjs/components/Panel/variations/_view/base.js +1 -1
- package/cjs/components/Panel/variations/_view/base.js.map +1 -1
- package/cjs/components/Panel/variations/_view/base_lwq4bq.css +1 -0
- package/cjs/index.css +5 -5
- package/emotion/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/emotion/cjs/components/Calendar/store/reducer.js +3 -4
- package/emotion/cjs/components/Drawer/Drawer.js +5 -1
- package/emotion/cjs/components/Panel/Panel.js +7 -6
- package/emotion/cjs/components/Panel/Panel.styles.js +4 -1
- package/emotion/cjs/components/Panel/Panel.tokens.js +6 -1
- package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
- package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/emotion/es/components/Calendar/store/reducer.js +3 -4
- package/emotion/es/components/Drawer/Drawer.js +5 -1
- package/emotion/es/components/Panel/Panel.js +8 -7
- package/emotion/es/components/Panel/Panel.styles.js +4 -1
- package/emotion/es/components/Panel/Panel.tokens.js +5 -0
- package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
- package/emotion/es/components/Panel/variations/_view/base.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/es/components/Calendar/hooks/useCalendarDateChange.js.map +1 -1
- package/es/components/Calendar/store/reducer.js +3 -4
- package/es/components/Calendar/store/reducer.js.map +1 -1
- package/es/components/Calendar/store/types.js.map +1 -1
- package/es/components/Drawer/Drawer.css +5 -5
- package/es/components/Drawer/Drawer.js +5 -1
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/es/components/Panel/Panel.css +2 -2
- package/es/components/Panel/Panel.js +9 -8
- package/es/components/Panel/Panel.js.map +1 -1
- package/es/components/Panel/Panel.styles.js +12 -2
- package/es/components/Panel/Panel.styles.js.map +1 -1
- package/es/components/Panel/Panel.styles_1g0gq8z.css +1 -0
- package/es/components/Panel/Panel.tokens.js +14 -1
- package/es/components/Panel/Panel.tokens.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
- package/es/components/Panel/variations/_view/base.js +1 -1
- package/es/components/Panel/variations/_view/base.js.map +1 -1
- package/es/components/Panel/variations/_view/base_lwq4bq.css +1 -0
- package/es/index.css +5 -5
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/styled-components/cjs/components/Calendar/store/reducer.js +3 -4
- package/styled-components/cjs/components/Drawer/Drawer.js +5 -1
- package/styled-components/cjs/components/Panel/Panel.js +7 -6
- package/styled-components/cjs/components/Panel/Panel.styles.js +4 -1
- package/styled-components/cjs/components/Panel/Panel.tokens.js +6 -1
- package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
- package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
- package/styled-components/es/components/Calendar/store/reducer.js +3 -4
- package/styled-components/es/components/Drawer/Drawer.js +5 -1
- package/styled-components/es/components/Panel/Panel.js +8 -7
- package/styled-components/es/components/Panel/Panel.styles.js +4 -1
- package/styled-components/es/components/Panel/Panel.tokens.js +5 -0
- package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
- package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/types/components/Calendar/hooks/useCalendarDateChange.d.ts.map +1 -1
- package/types/components/Calendar/store/types.d.ts +0 -1
- package/types/components/Calendar/store/types.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +4 -0
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +8 -0
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Panel/Panel.d.ts.map +1 -1
- package/types/components/Panel/Panel.styles.d.ts +3 -1
- package/types/components/Panel/Panel.styles.d.ts.map +1 -1
- package/types/components/Panel/Panel.tokens.d.ts +5 -0
- package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
- package/types/components/Panel/Panel.types.d.ts +8 -0
- package/types/components/Panel/Panel.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +2 -0
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +2 -0
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
- package/cjs/components/Panel/Panel.styles_2oh0yk.css +0 -1
- package/cjs/components/Panel/variations/_view/base_10gjs6e.css +0 -1
- package/es/components/Panel/Panel.styles_2oh0yk.css +0 -1
- package/es/components/Panel/variations/_view/base_10gjs6e.css +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useCalendarDateChange.js","sources":["../../../../src/components/Calendar/hooks/useCalendarDateChange.ts"],"sourcesContent":["import { useCallback } from 'react';\n\nimport type { DateObject } from '../Calendar.types';\nimport { ActionType, CalendarState, CalendarStateType } from '../store/types';\nimport { sizeMap } from '../store/reducer';\n\nimport type { UseCalendarDateChangeArgs } from './types';\n\nexport const useCalendarDateChange = ({\n type,\n onChangeValue,\n onSelectIndexes,\n dispatch,\n}: UseCalendarDateChangeArgs) => {\n const handleOnChangeDay = useCallback(\n (newDate: DateObject, coord: number[]) => {\n const newDay = new Date(newDate.year, newDate.monthIndex, newDate.day);\n onChangeValue?.(newDay);\n\n onSelectIndexes(coord);\n },\n [onChangeValue, onSelectIndexes],\n );\n\n const handleOnChangeQuarter = useCallback(\n (newDate: DateObject, coord: number[], quarterName: string) => {\n const newQuarterDate = new Date(newDate.year, newDate.monthIndex, newDate.day);\n const endQuarter = new Date(newQuarterDate);\n\n endQuarter.setMonth(newQuarterDate.getMonth() + 3);\n endQuarter.setDate(0);\n\n onChangeValue?.(newQuarterDate, {\n name: quarterName,\n fullValue: [newQuarterDate, endQuarter],\n });\n\n onSelectIndexes(coord);\n },\n [onChangeValue, onSelectIndexes, type],\n );\n\n const handleOnChangeMonth = useCallback(\n (newDate: DateObject, coord: number[]) => {\n if (type === CalendarState.Months) {\n const newMonthDate = new Date(newDate.year, newDate.monthIndex, newDate.day);\n onChangeValue?.(newMonthDate);\n onSelectIndexes(coord);\n\n return;\n }\n\n dispatch({\n type: ActionType.UPDATE_MONTH,\n payload: {\n calendarState: CalendarState.Days,\n monthIndex: newDate.monthIndex,\n
|
1
|
+
{"version":3,"file":"useCalendarDateChange.js","sources":["../../../../src/components/Calendar/hooks/useCalendarDateChange.ts"],"sourcesContent":["import { useCallback } from 'react';\n\nimport type { DateObject } from '../Calendar.types';\nimport { ActionType, CalendarState, CalendarStateType } from '../store/types';\nimport { sizeMap } from '../store/reducer';\n\nimport type { UseCalendarDateChangeArgs } from './types';\n\nexport const useCalendarDateChange = ({\n type,\n onChangeValue,\n onSelectIndexes,\n dispatch,\n}: UseCalendarDateChangeArgs) => {\n const handleOnChangeDay = useCallback(\n (newDate: DateObject, coord: number[]) => {\n const newDay = new Date(newDate.year, newDate.monthIndex, newDate.day);\n onChangeValue?.(newDay);\n\n onSelectIndexes(coord);\n },\n [onChangeValue, onSelectIndexes],\n );\n\n const handleOnChangeQuarter = useCallback(\n (newDate: DateObject, coord: number[], quarterName: string) => {\n const newQuarterDate = new Date(newDate.year, newDate.monthIndex, newDate.day);\n const endQuarter = new Date(newQuarterDate);\n\n endQuarter.setMonth(newQuarterDate.getMonth() + 3);\n endQuarter.setDate(0);\n\n onChangeValue?.(newQuarterDate, {\n name: quarterName,\n fullValue: [newQuarterDate, endQuarter],\n });\n\n onSelectIndexes(coord);\n },\n [onChangeValue, onSelectIndexes, type],\n );\n\n const handleOnChangeMonth = useCallback(\n (newDate: DateObject, coord: number[]) => {\n if (type === CalendarState.Months) {\n const newMonthDate = new Date(newDate.year, newDate.monthIndex, newDate.day);\n onChangeValue?.(newMonthDate);\n onSelectIndexes(coord);\n\n return;\n }\n\n dispatch({\n type: ActionType.UPDATE_MONTH,\n payload: {\n calendarState: CalendarState.Days,\n monthIndex: newDate.monthIndex,\n size: sizeMap.Days.double,\n },\n });\n },\n [onChangeValue, onSelectIndexes, type],\n );\n\n const handleOnChangeYear = useCallback(\n (newDate: DateObject, coord: number[]) => {\n if (type === CalendarState.Years) {\n const newYearDate = new Date(newDate.year, newDate.monthIndex, newDate.day);\n onChangeValue?.(newYearDate);\n onSelectIndexes(coord);\n\n return;\n }\n\n if (type === CalendarState.Quarters) {\n dispatch({\n type: ActionType.UPDATE_YEAR,\n payload: {\n calendarState: CalendarState.Quarters,\n year: newDate.year,\n size: sizeMap.Quarters.double,\n },\n });\n\n return;\n }\n\n dispatch({\n type: ActionType.UPDATE_YEAR,\n payload: {\n calendarState: CalendarState.Months,\n year: newDate.year,\n size: sizeMap.Months.double,\n },\n });\n },\n [onChangeValue, onSelectIndexes, type],\n );\n\n const handleUpdateCalendarState = useCallback((newCalendarState: CalendarStateType, newSize: [number, number]) => {\n dispatch({\n type: ActionType.UPDATE_CALENDAR_STATE,\n payload: { calendarState: newCalendarState, size: newSize },\n });\n }, []);\n\n return {\n handleOnChangeDay,\n handleOnChangeMonth,\n handleOnChangeQuarter,\n handleOnChangeYear,\n handleUpdateCalendarState,\n };\n};\n"],"names":["useCalendarDateChange","_ref","type","onChangeValue","onSelectIndexes","dispatch","handleOnChangeDay","useCallback","newDate","coord","newDay","Date","year","monthIndex","day","handleOnChangeQuarter","quarterName","newQuarterDate","endQuarter","setMonth","getMonth","setDate","name","fullValue","handleOnChangeMonth","CalendarState","Months","newMonthDate","ActionType","UPDATE_MONTH","payload","calendarState","Days","size","sizeMap","handleOnChangeYear","Years","newYearDate","Quarters","UPDATE_YEAR","handleUpdateCalendarState","newCalendarState","newSize","UPDATE_CALENDAR_STATE"],"mappings":";;;;;;;;IAQaA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAKD;AAAA,EAAA,IAJ7BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,eAAe,GAAAH,IAAA,CAAfG,eAAe;IACfC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ,CAAA;EAER,IAAMC,iBAAiB,GAAGC,iBAAW,CACj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AAa,EAAEN,mBAAa,CAACa,QAAQ;UACrC1B,IAAI,EAAEJ,OAAO,CAACI,IAAI;UAClBqB,IAAI,EAAEC,eAAO,CAACI,QAAQ,CAAA,QAAA,CAAA;AAC1B,SAAA;AACJ,OAAC,CAAC,CAAA;AAEF,MAAA,OAAA;AACJ,KAAA;AAEAjC,IAAAA,QAAQ,CAAC;MACLH,IAAI,EAAE0B,gBAAU,CAACW,WAAW;AAC5BT,MAAAA,OAAO,EAAE;QACLC,aAAa,EAAEN,mBAAa,CAACC,MAAM;QACnCd,IAAI,EAAEJ,OAAO,CAACI,IAAI;QAClBqB,IAAI,EAAEC,eAAO,CAACR,MAAM,CAAA,QAAA,CAAA;AACxB,OAAA;AACJ,KAAC,CAAC,CAAA;GACL,EACD,CAACvB,aAAa,EAAEC,eAAe,EAAEF,IAAI,CACzC,CAAC,CAAA;EAED,IAAMsC,yBAAyB,GAAGjC,iBAAW,CAAC,UAACkC,gBAAmC,EAAEC,OAAyB,EAAK;AAC9GrC,IAAAA,QAAQ,CAAC;MACLH,IAAI,EAAE0B,gBAAU,CAACe,qBAAqB;AACtCb,MAAAA,OAAO,EAAE;AAAEC,QAAAA,aAAa,EAAEU,gBAAgB;AAAER,QAAAA,IAAI,EAAES,OAAAA;AAAQ,OAAA;AAC9D,KAAC,CAAC,CAAA;GACL,EAAE,EAAE,CAAC,CAAA;EAEN,OAAO;AACHpC,IAAAA,iBAAiB,EAAjBA,iBAAiB;AACjBkB,IAAAA,mBAAmB,EAAnBA,mBAAmB;AACnBT,IAAAA,qBAAqB,EAArBA,qBAAqB;AACrBoB,IAAAA,kBAAkB,EAAlBA,kBAAkB;AAClBK,IAAAA,yBAAyB,EAAzBA,yBAAAA;GACH,CAAA;AACL;;;;"}
|
@@ -128,7 +128,6 @@ var reducer = function reducer(state, action) {
|
|
128
128
|
var _action$payload3 = action.payload,
|
129
129
|
calendarState = _action$payload3.calendarState,
|
130
130
|
_monthIndex2 = _action$payload3.monthIndex,
|
131
|
-
_year2 = _action$payload3.year,
|
132
131
|
size = _action$payload3.size;
|
133
132
|
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, state), {}, {
|
134
133
|
size: size,
|
@@ -136,7 +135,7 @@ var reducer = function reducer(state, action) {
|
|
136
135
|
date: {
|
137
136
|
day: state.date.day,
|
138
137
|
monthIndex: _monthIndex2,
|
139
|
-
year:
|
138
|
+
year: state.date.year
|
140
139
|
}
|
141
140
|
});
|
142
141
|
}
|
@@ -144,7 +143,7 @@ var reducer = function reducer(state, action) {
|
|
144
143
|
{
|
145
144
|
var _action$payload4 = action.payload,
|
146
145
|
_calendarState = _action$payload4.calendarState,
|
147
|
-
|
146
|
+
_year2 = _action$payload4.year,
|
148
147
|
_size = _action$payload4.size;
|
149
148
|
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, state), {}, {
|
150
149
|
size: _size,
|
@@ -152,7 +151,7 @@ var reducer = function reducer(state, action) {
|
|
152
151
|
date: {
|
153
152
|
day: state.date.day,
|
154
153
|
monthIndex: state.date.monthIndex,
|
155
|
-
year:
|
154
|
+
year: _year2
|
156
155
|
}
|
157
156
|
});
|
158
157
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reducer.js","sources":["../../../../src/components/Calendar/store/reducer.ts"],"sourcesContent":["import { getDateFromValue, getNextDate, getPrevDate, getStartYear } from '../utils';\n\nimport { CalendarStateType, Action, ActionType, InitialState, SizeMap } from './types';\n\nexport const sizeMap: SizeMap = {\n Days: {\n single: [5, 6],\n double: [11, 6],\n },\n Months: {\n single: [3, 2],\n double: [7, 2],\n },\n Years: {\n single: [3, 2],\n double: [7, 2],\n },\n Quarters: {\n single: [1, 1],\n double: [3, 1],\n },\n};\n\nexport const getInitialState = (\n value: Date | undefined,\n min: Date | undefined,\n calendarState: CalendarStateType,\n isDouble?: boolean,\n): InitialState => {\n const initDate = value || min || new Date();\n const date = getDateFromValue(initDate);\n\n const resSize: [number, number] = isDouble ? sizeMap[calendarState].double : sizeMap[calendarState].single;\n\n return {\n date: { ...date, day: value !== undefined ? date.day : 0 },\n startYear: getStartYear(date.year),\n calendarState,\n size: resSize,\n };\n};\n\nexport const reducer = (state: InitialState, action: Action): InitialState => {\n switch (action.type) {\n case ActionType.PREVIOUS_MONTH: {\n const { year, monthIndex } = action.payload;\n const [prevYear, prevMonthIndex] = getPrevDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: prevMonthIndex,\n year: prevYear,\n },\n };\n }\n case ActionType.NEXT_MONTH: {\n const { monthIndex, year } = action.payload;\n const [nextYear, nextMonthIndex] = getNextDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: nextMonthIndex,\n year: nextYear,\n },\n };\n }\n case ActionType.PREVIOUS_YEAR: {\n const { step } = action.payload;\n const startYear = state.date.year - step <= 0 ? 0 : state.date.year - step;\n\n return {\n ...state,\n startYear,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: startYear,\n },\n };\n }\n case ActionType.NEXT_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year + step,\n },\n };\n }\n case ActionType.PREVIOUS_START_YEAR: {\n const { yearsCount } = action.payload;\n const startYear = state.startYear - yearsCount < 0 ? 0 : state.startYear - yearsCount;\n\n return {\n ...state,\n startYear,\n };\n }\n case ActionType.NEXT_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + yearsCount,\n };\n }\n case ActionType.UPDATE_DATE: {\n const { value } = action.payload;\n const date = getDateFromValue(value);\n const startYear = getStartYear(value.getFullYear());\n\n return {\n ...state,\n date,\n startYear,\n };\n }\n case ActionType.UPDATE_MONTH: {\n const { calendarState, monthIndex, year, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex,\n year,\n },\n };\n }\n case ActionType.UPDATE_YEAR: {\n const { calendarState, year, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year,\n },\n };\n }\n case ActionType.UPDATE_CALENDAR_STATE: {\n const { calendarState, size } = action.payload;\n\n return {\n ...state,\n calendarState,\n size: size || state.size,\n };\n }\n default:\n return state;\n }\n};\n"],"names":["sizeMap","Days","single","Months","Years","Quarters","getInitialState","value","min","calendarState","isDouble","initDate","Date","date","getDateFromValue","resSize","_objectSpread","day","undefined","startYear","getStartYear","year","size","reducer","state","action","type","ActionType","PREVIOUS_MONTH","_action$payload","payload","monthIndex","_getPrevDate","getPrevDate","_getPrevDate2","_slicedToArray","prevYear","prevMonthIndex","NEXT_MONTH","_action$payload2","_getNextDate","getNextDate","_getNextDate2","nextYear","nextMonthIndex","PREVIOUS_YEAR","step","NEXT_YEAR","PREVIOUS_START_YEAR","yearsCount","NEXT_START_YEAR","UPDATE_DATE","getFullYear","UPDATE_MONTH","_action$payload3","UPDATE_YEAR","_action$payload4","UPDATE_CALENDAR_STATE","_action$payload5"],"mappings":";;;;;;;;AAIO,IAAMA,OAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE;AACFC,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,EAAE,EAAE,CAAC,CAAA;GACjB;AACDC,EAAAA,MAAM,EAAE;AACJD,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDE,EAAAA,KAAK,EAAE;AACHF,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDG,EAAAA,QAAQ,EAAE;AACNH,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,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,IAAI,CAAA;AAE3B,QAAA,OAAAN,uCAAA,CAAAA,uCAAA,CAAA,EAAA,EACOQ,KAAK,CAAA,EAAA,EAAA,EAAA;AACRf,UAAAA,aAAa,EAAbA,eAAa;AACba,UAAAA,IAAI,EAAEA,MAAI,IAAIE,KAAK,CAACF,IAAAA;AAAI,SAAA,CAAA,CAAA;AAEhC,OAAA;AACA,IAAA;AACI,MAAA,OAAOE,KAAK,CAAA;AACpB,GAAA;AACJ;;;;;;"}
|
1
|
+
{"version":3,"file":"reducer.js","sources":["../../../../src/components/Calendar/store/reducer.ts"],"sourcesContent":["import { getDateFromValue, getNextDate, getPrevDate, getStartYear } from '../utils';\n\nimport { CalendarStateType, Action, ActionType, InitialState, SizeMap } from './types';\n\nexport const sizeMap: SizeMap = {\n Days: {\n single: [5, 6],\n double: [11, 6],\n },\n Months: {\n single: [3, 2],\n double: [7, 2],\n },\n Years: {\n single: [3, 2],\n double: [7, 2],\n },\n Quarters: {\n single: [1, 1],\n double: [3, 1],\n },\n};\n\nexport const getInitialState = (\n value: Date | undefined,\n min: Date | undefined,\n calendarState: CalendarStateType,\n isDouble?: boolean,\n): InitialState => {\n const initDate = value || min || new Date();\n const date = getDateFromValue(initDate);\n\n const resSize: [number, number] = isDouble ? sizeMap[calendarState].double : sizeMap[calendarState].single;\n\n return {\n date: { ...date, day: value !== undefined ? date.day : 0 },\n startYear: getStartYear(date.year),\n calendarState,\n size: resSize,\n };\n};\n\nexport const reducer = (state: InitialState, action: Action): InitialState => {\n switch (action.type) {\n case ActionType.PREVIOUS_MONTH: {\n const { year, monthIndex } = action.payload;\n const [prevYear, prevMonthIndex] = getPrevDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: prevMonthIndex,\n year: prevYear,\n },\n };\n }\n case ActionType.NEXT_MONTH: {\n const { monthIndex, year } = action.payload;\n const [nextYear, nextMonthIndex] = getNextDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: nextMonthIndex,\n year: nextYear,\n },\n };\n }\n case ActionType.PREVIOUS_YEAR: {\n const { step } = action.payload;\n const startYear = state.date.year - step <= 0 ? 0 : state.date.year - step;\n\n return {\n ...state,\n startYear,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: startYear,\n },\n };\n }\n case ActionType.NEXT_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year + step,\n },\n };\n }\n case ActionType.PREVIOUS_START_YEAR: {\n const { yearsCount } = action.payload;\n const startYear = state.startYear - yearsCount < 0 ? 0 : state.startYear - yearsCount;\n\n return {\n ...state,\n startYear,\n };\n }\n case ActionType.NEXT_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + yearsCount,\n };\n }\n case ActionType.UPDATE_DATE: {\n const { value } = action.payload;\n const date = getDateFromValue(value);\n const startYear = getStartYear(value.getFullYear());\n\n return {\n ...state,\n date,\n startYear,\n };\n }\n case ActionType.UPDATE_MONTH: {\n const { calendarState, monthIndex, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex,\n year: state.date.year,\n },\n };\n }\n case ActionType.UPDATE_YEAR: {\n const { calendarState, year, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year,\n },\n };\n }\n case ActionType.UPDATE_CALENDAR_STATE: {\n const { calendarState, size } = action.payload;\n\n return {\n ...state,\n calendarState,\n size: size || state.size,\n };\n }\n default:\n return state;\n }\n};\n"],"names":["sizeMap","Days","single","Months","Years","Quarters","getInitialState","value","min","calendarState","isDouble","initDate","Date","date","getDateFromValue","resSize","_objectSpread","day","undefined","startYear","getStartYear","year","size","reducer","state","action","type","ActionType","PREVIOUS_MONTH","_action$payload","payload","monthIndex","_getPrevDate","getPrevDate","_getPrevDate2","_slicedToArray","prevYear","prevMonthIndex","NEXT_MONTH","_action$payload2","_getNextDate","getNextDate","_getNextDate2","nextYear","nextMonthIndex","PREVIOUS_YEAR","step","NEXT_YEAR","PREVIOUS_START_YEAR","yearsCount","NEXT_START_YEAR","UPDATE_DATE","getFullYear","UPDATE_MONTH","_action$payload3","UPDATE_YEAR","_action$payload4","UPDATE_CALENDAR_STATE","_action$payload5"],"mappings":";;;;;;;;AAIO,IAAMA,OAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE;AACFC,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,EAAE,EAAE,CAAC,CAAA;GACjB;AACDC,EAAAA,MAAM,EAAE;AACJD,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDE,EAAAA,KAAK,EAAE;AACHF,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDG,EAAAA,QAAQ,EAAE;AACNH,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;AACjB,GAAA;AACJ,EAAC;AAEYI,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,CACxBC,KAAuB,EACvBC,GAAqB,EACrBC,aAAgC,EAChCC,QAAkB,EACH;EACf,IAAMC,QAAQ,GAAGJ,KAAK,IAAIC,GAAG,IAAI,IAAII,IAAI,EAAE,CAAA;AAC3C,EAAA,IAAMC,IAAI,GAAGC,mCAAgB,CAACH,QAAQ,CAAC,CAAA;AAEvC,EAAA,IAAMI,OAAyB,GAAGL,QAAQ,GAAGV,OAAO,CAACS,aAAa,CAAC,CAAA,QAAA,CAAO,GAAGT,OAAO,CAACS,aAAa,CAAC,CAACP,MAA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AA,IAAAC,gBAAA,GAAsC/B,MAAM,CAACK,OAAO;UAA5CrB,cAAa,GAAA+C,gBAAA,CAAb/C,aAAa;UAAEY,MAAI,GAAAmC,gBAAA,CAAJnC,IAAI;UAAEC,KAAI,GAAAkC,gBAAA,CAAJlC,IAAI,CAAA;AAEjC,QAAA,OAAAN,uCAAA,CAAAA,uCAAA,CAAA,EAAA,EACOQ,KAAK,CAAA,EAAA,EAAA,EAAA;AACRF,UAAAA,IAAI,EAAJA,KAAI;AACJb,UAAAA,aAAa,EAAbA,cAAa;AACbI,UAAAA,IAAI,EAAE;AACFI,YAAAA,GAAG,EAAEO,KAAK,CAACX,IAAI,CAACI,GAAG;AACnBc,YAAAA,UAAU,EAAEP,KAAK,CAACX,IAAI,CAACkB,UAAU;AACjCV,YAAAA,IAAI,EAAJA,MAAAA;AACJ,WAAA;AAAC,SAAA,CAAA,CAAA;AAET,OAAA;IACA,KAAKM,gBAAU,CAAC8B,qBAAqB;AAAE,MAAA;AACnC,QAAA,IAAAC,gBAAA,GAAgCjC,MAAM,CAACK,OAAO;UAAtCrB,eAAa,GAAAiD,gBAAA,CAAbjD,aAAa;UAAEa,MAAI,GAAAoC,gBAAA,CAAJpC,IAAI,CAAA;AAE3B,QAAA,OAAAN,uCAAA,CAAAA,uCAAA,CAAA,EAAA,EACOQ,KAAK,CAAA,EAAA,EAAA,EAAA;AACRf,UAAAA,aAAa,EAAbA,eAAa;AACba,UAAAA,IAAI,EAAEA,MAAI,IAAIE,KAAK,CAACF,IAAAA;AAAI,SAAA,CAAA,CAAA;AAEhC,OAAA;AACA,IAAA;AACI,MAAA,OAAOE,KAAK,CAAA;AACpB,GAAA;AACJ;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/components/Calendar/store/types.ts"],"sourcesContent":["import type { DateObject } from '../Calendar.types';\n\nexport enum CalendarState {\n Days = 'Days',\n Months = 'Months',\n Years = 'Years',\n Quarters = 'Quarters',\n}\n\nexport const enum ActionType {\n NEXT_MONTH = 'next_month',\n PREVIOUS_MONTH = 'previous_month',\n NEXT_YEAR = 'next_year',\n PREVIOUS_YEAR = 'previous_year',\n PREVIOUS_START_YEAR = 'previous_start_year',\n NEXT_START_YEAR = 'next_start_year',\n UPDATE_DATE = 'update_date',\n UPDATE_MONTH = 'update_month',\n UPDATE_YEAR = 'update_year',\n UPDATE_CALENDAR_STATE = 'update_calendar_state',\n}\n\nexport type SizeMap = {\n [key in CalendarState]: {\n single: [number, number];\n double: [number, number];\n };\n};\n\nexport type CalendarStateType = keyof typeof CalendarState;\n\nexport interface InitialState {\n date: DateObject;\n calendarState: CalendarStateType;\n startYear: number;\n size: [number, number];\n}\n\nexport type PreviousMonthAction = { type: ActionType.PREVIOUS_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type NextMonthAction = { type: ActionType.NEXT_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type PreviousYearAction = { type: ActionType.PREVIOUS_YEAR; payload: { step: number } };\n\nexport type NextYearAction = { type: ActionType.NEXT_YEAR; payload: { step: number } };\n\nexport type PreviousStartYearAction = { type: ActionType.PREVIOUS_START_YEAR; payload: { yearsCount: number } };\n\nexport type NextStartYearAction = { type: ActionType.NEXT_START_YEAR; payload: { yearsCount: number } };\n\nexport type UpdateDateAction = { type: ActionType.UPDATE_DATE; payload: { value: Date } };\n\nexport type UpdateMonthAction = {\n type: ActionType.UPDATE_MONTH;\n payload: { calendarState: CalendarStateType; monthIndex: number;
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/components/Calendar/store/types.ts"],"sourcesContent":["import type { DateObject } from '../Calendar.types';\n\nexport enum CalendarState {\n Days = 'Days',\n Months = 'Months',\n Years = 'Years',\n Quarters = 'Quarters',\n}\n\nexport const enum ActionType {\n NEXT_MONTH = 'next_month',\n PREVIOUS_MONTH = 'previous_month',\n NEXT_YEAR = 'next_year',\n PREVIOUS_YEAR = 'previous_year',\n PREVIOUS_START_YEAR = 'previous_start_year',\n NEXT_START_YEAR = 'next_start_year',\n UPDATE_DATE = 'update_date',\n UPDATE_MONTH = 'update_month',\n UPDATE_YEAR = 'update_year',\n UPDATE_CALENDAR_STATE = 'update_calendar_state',\n}\n\nexport type SizeMap = {\n [key in CalendarState]: {\n single: [number, number];\n double: [number, number];\n };\n};\n\nexport type CalendarStateType = keyof typeof CalendarState;\n\nexport interface InitialState {\n date: DateObject;\n calendarState: CalendarStateType;\n startYear: number;\n size: [number, number];\n}\n\nexport type PreviousMonthAction = { type: ActionType.PREVIOUS_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type NextMonthAction = { type: ActionType.NEXT_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type PreviousYearAction = { type: ActionType.PREVIOUS_YEAR; payload: { step: number } };\n\nexport type NextYearAction = { type: ActionType.NEXT_YEAR; payload: { step: number } };\n\nexport type PreviousStartYearAction = { type: ActionType.PREVIOUS_START_YEAR; payload: { yearsCount: number } };\n\nexport type NextStartYearAction = { type: ActionType.NEXT_START_YEAR; payload: { yearsCount: number } };\n\nexport type UpdateDateAction = { type: ActionType.UPDATE_DATE; payload: { value: Date } };\n\nexport type UpdateMonthAction = {\n type: ActionType.UPDATE_MONTH;\n payload: { calendarState: CalendarStateType; monthIndex: number; size: [number, number] };\n};\n\nexport type UpdateYearAction = {\n type: ActionType.UPDATE_YEAR;\n payload: { calendarState: CalendarStateType; year: number; size: [number, number] };\n};\n\nexport type UpdateCalendarStateAction = {\n type: ActionType.UPDATE_CALENDAR_STATE;\n payload: { calendarState: CalendarStateType; size?: [number, number] };\n};\n\nexport type Action =\n | NextMonthAction\n | PreviousMonthAction\n | NextYearAction\n | PreviousYearAction\n | PreviousStartYearAction\n | NextStartYearAction\n | UpdateDateAction\n | UpdateMonthAction\n | UpdateYearAction\n | UpdateCalendarStateAction;\n"],"names":["CalendarState","ActionType"],"mappings":";;;;AAEYA,IAAAA,aAAa,0BAAbA,aAAa,EAAA;EAAbA,aAAa,CAAA,MAAA,CAAA,GAAA,MAAA,CAAA;EAAbA,aAAa,CAAA,QAAA,CAAA,GAAA,QAAA,CAAA;EAAbA,aAAa,CAAA,OAAA,CAAA,GAAA,OAAA,CAAA;EAAbA,aAAa,CAAA,UAAA,CAAA,GAAA,UAAA,CAAA;AAAA,EAAA,OAAbA,aAAa,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;AAOPC,IAAAA,UAAU,0BAAVA,UAAU,EAAA;EAAVA,UAAU,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;EAAVA,UAAU,CAAA,gBAAA,CAAA,GAAA,gBAAA,CAAA;EAAVA,UAAU,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAAVA,UAAU,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;EAAVA,UAAU,CAAA,qBAAA,CAAA,GAAA,qBAAA,CAAA;EAAVA,UAAU,CAAA,iBAAA,CAAA,GAAA,iBAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,uBAAA,CAAA,GAAA,uBAAA,CAAA;AAAA,EAAA,OAAVA,UAAU,CAAA;AAAA,CAAA,CAAA,EAAA;;;;;"}
|
@@ -11,13 +11,13 @@
|
|
11
11
|
|
12
12
|
.base_ydejlv_b175yas1__99ab42b5{--plasma-panel-border-radius:var(--plasma-drawer-border-radius);}
|
13
13
|
|
14
|
-
.
|
14
|
+
.base_lwq4bq_b11yryf5__4e4b1db2{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
15
15
|
|
16
16
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
17
17
|
|
18
18
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
19
19
|
|
20
|
-
.
|
20
|
+
.Panel_styles_1g0gq8z_siaxu13__180beaa7{background:var(--siaxu13-0);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
21
21
|
|
22
22
|
.base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
|
23
23
|
|
@@ -51,9 +51,9 @@
|
|
51
51
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
52
52
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{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;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
53
53
|
|
54
|
-
.
|
55
|
-
.
|
56
|
-
.
|
54
|
+
.PanelHeader_styles_16qje7n_b5xb1jq__a3864628{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
55
|
+
.PanelHeader_styles_16qje7n_s1hqmxl1__a3864628{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
56
|
+
.PanelHeader_styles_16qje7n_c7hx8go__a3864628{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
57
57
|
|
58
58
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
59
59
|
|
@@ -23,7 +23,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
23
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
25
25
|
|
26
|
-
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
|
26
|
+
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "customBackgroundColor", "customContentBackgroundColor", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
|
27
27
|
|
28
28
|
// issue #823
|
29
29
|
|
@@ -43,6 +43,8 @@ var drawerRoot = function drawerRoot(Root) {
|
|
43
43
|
initialFocusRef = _ref.initialFocusRef,
|
44
44
|
focusAfterRef = _ref.focusAfterRef,
|
45
45
|
className = _ref.className,
|
46
|
+
customBackgroundColor = _ref.customBackgroundColor,
|
47
|
+
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
46
48
|
onClose = _ref.onClose,
|
47
49
|
onOverlayClick = _ref.onOverlayClick,
|
48
50
|
onEscKeyDown = _ref.onEscKeyDown,
|
@@ -126,6 +128,8 @@ var drawerRoot = function drawerRoot(Root) {
|
|
126
128
|
}, /*#__PURE__*/React__default.default.createElement(Drawer_styles.StyledPanel, {
|
127
129
|
width: innerWidth,
|
128
130
|
height: innerHeight,
|
131
|
+
customBackgroundColor: customBackgroundColor,
|
132
|
+
customContentBackgroundColor: customContentBackgroundColor,
|
129
133
|
className: className
|
130
134
|
}, children)));
|
131
135
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { useFocusTrap } from '../../hooks';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup, StyledPanel } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <StyledPanel width={innerWidth} height={innerHeight} className={className}>\n {children}\n </StyledPanel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","StyledPanel","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;IAEaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA4C,EAAA;AAAA,EAAA,oBACnEC,gBAAU,CACN,UAAAC,IAAA,EA4BIC,QAAQ,EACP;AAAA,IAAA,IA3BGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MACTC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;MACRC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,MAAM,GAAAV,IAAA,CAANU,MAAM;MACNC,MAAM,GAAAX,IAAA,CAANW,MAAM;MACNC,MAAM,GAAAZ,IAAA,CAANY,MAAM;MACNC,eAAe,GAAAb,IAAA,CAAfa,eAAe;MACfC,aAAa,GAAAd,IAAA,CAAbc,aAAa;MACbC,SAAS,GAAAf,IAAA,CAATe,SAAS;MACTC,OAAO,GAAAhB,IAAA,CAAPgB,OAAO;MACPC,cAAc,GAAAjB,IAAA,CAAdiB,cAAc;MACdC,YAAY,GAAAlB,IAAA,CAAZkB,YAAY;MACZC,MAAM,GAAAnB,IAAA,CAANmB,MAAM;MACNC,KAAK,GAAApB,IAAA,CAALoB,KAAK;MAAAC,iBAAA,GAAArB,IAAA,CACLs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AW,EAAA;AAACtE,MAAAA,KAAK,EAAEyC,UAAW;AAACxC,MAAAA,MAAM,EAAE0C,WAAY;AAACrC,MAAAA,SAAS,EAAEA,SAAAA;KAC3DT,EAAAA,QACQ,CACX,CACG,CAAC,CAAA;AAEtB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM0E,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEtF,UAAU;AAClBuF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR9E,IAAAA,IAAI,EAAE;AACF+E,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD/E,IAAAA,IAAI,EAAE;AACF8E,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDlE,IAAAA,YAAY,EAAE;AACVgE,MAAAA,GAAG,EAAEG,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNnF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTc,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;;"}
|
1
|
+
{"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { useFocusTrap } from '../../hooks';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup, StyledPanel } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n customBackgroundColor,\n customContentBackgroundColor,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <StyledPanel\n width={innerWidth}\n height={innerHeight}\n customBackgroundColor={customBackgroundColor}\n customContentBackgroundColor={customContentBackgroundColor}\n className={className}\n >\n {children}\n </StyledPanel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","customBackgroundColor","customContentBackgroundColor","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","StyledPanel","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;IAEaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA4C,EAAA;AAAA,EAAA,oBACnEC,gBAAU,CACN,UAAAC,IAAA,EA8BIC,QAAQ,EACP;AAAA,IAAA,IA7BGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MACTC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;MACRC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,MAAM,GAAAV,IAAA,CAANU,MAAM;MACNC,MAAM,GAAAX,IAAA,CAANW,MAAM;MACNC,MAAM,GAAAZ,IAAA,CAANY,MAAM;MACNC,eAAe,GAAAb,IAAA,CAAfa,eAAe;MACfC,aAAa,GAAAd,IAAA,CAAbc,aAAa;MACbC,SAAS,GAAAf,IAAA,CAATe,SAAS;MACTC,qBAAqB,GAAAhB,IAAA,CAArBgB,qBAAqB;MACrBC,4BAA4B,GAAAjB,IAAA,CAA5BiB,4BAA4B;MAC5BC,OAAO,GAAAlB,IAAA,CAAPkB,OAAO;MACPC,cAAc,GAAAnB,IAAA,CAAdmB,cAAc;MACdC,YAAY,GAAApB,IAAA,CAAZoB,YAAY;MACZC,MAAM,GAAArB,IAAA,CAANqB,MAAM;MACNC,KAAK,GAAAtB,IAAA,CAALsB,KAAK;MAAAC,iBAAA,GAAAvB,IAAA,CACLwB,YAAY;AAAZA,MAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,iBA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ACpBtC,MAAAA,qBAAqB,EAAEA,qBAAsB;AAC7CC,MAAAA,4BAA4B,EAAEA,4BAA6B;AAC3DF,MAAAA,SAAS,EAAEA,SAAAA;KAEVT,EAAAA,QACQ,CACX,CACG,CAAC,CAAA;AAEtB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM4E,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAExF,UAAU;AAClByF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRhF,IAAAA,IAAI,EAAE;AACFiF,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDjF,IAAAA,IAAI,EAAE;AACFgF,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDlE,IAAAA,YAAY,EAAE;AACVgE,MAAAA,GAAG,EAAEG,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNrF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTgB,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;;"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
.
|
1
|
+
.base_lwq4bq_b11yryf5__4e4b1db2{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
2
2
|
|
3
3
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
4
4
|
|
5
5
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
6
6
|
|
7
|
-
.
|
7
|
+
.Panel_styles_1g0gq8z_siaxu13__180beaa7{background:var(--siaxu13-0);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
8
8
|
|
9
9
|
.base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
|
10
10
|
|
@@ -38,8 +38,8 @@
|
|
38
38
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
39
39
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{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;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
40
40
|
|
41
|
-
.
|
42
|
-
.
|
43
|
-
.
|
41
|
+
.PanelHeader_styles_16qje7n_b5xb1jq__a3864628{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
42
|
+
.PanelHeader_styles_16qje7n_s1hqmxl1__a3864628{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
43
|
+
.PanelHeader_styles_16qje7n_c7hx8go__a3864628{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
44
44
|
|
45
45
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
.
|
1
|
+
.base_lwq4bq_b11yryf5__4e4b1db2{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
2
2
|
|
3
3
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
4
4
|
|
5
5
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
6
6
|
|
7
|
-
.
|
7
|
+
.Panel_styles_1g0gq8z_siaxu13__180beaa7{background:var(--siaxu13-0);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
@@ -16,7 +16,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
18
18
|
|
19
|
-
var _excluded = ["children", "view", "size", "width", "height", "className", "style"];
|
19
|
+
var _excluded = ["children", "view", "size", "width", "height", "customBackgroundColor", "customContentBackgroundColor", "className", "style"];
|
20
20
|
var panelRoot = function panelRoot(Root) {
|
21
21
|
return /*#__PURE__*/React.forwardRef(function (_ref, outerRef) {
|
22
22
|
var children = _ref.children,
|
@@ -24,6 +24,8 @@ var panelRoot = function panelRoot(Root) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
width = _ref.width,
|
26
26
|
height = _ref.height,
|
27
|
+
customBackgroundColor = _ref.customBackgroundColor,
|
28
|
+
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
27
29
|
className = _ref.className,
|
28
30
|
style = _ref.style,
|
29
31
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -34,11 +36,10 @@ var panelRoot = function panelRoot(Root) {
|
|
34
36
|
view: view,
|
35
37
|
size: size,
|
36
38
|
className: index.cx(Panel_tokens.classes.root, className),
|
37
|
-
style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), {}, {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}, rest), /*#__PURE__*/React__default.default.createElement(Panel_styles.StyledWrapper, null, children));
|
39
|
+
style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), {}, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Panel_tokens.privateTokens.width, innerWidth), Panel_tokens.privateTokens.height, innerHeight), Panel_tokens.privateTokens.backgrounColor, customBackgroundColor))
|
40
|
+
}, rest), /*#__PURE__*/React__default.default.createElement(Panel_styles.StyledWrapper, {
|
41
|
+
customContentBackgroundColor: customContentBackgroundColor
|
42
|
+
}, children));
|
42
43
|
});
|
43
44
|
};
|
44
45
|
var panelConfig = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx, getSizeValueFromProp } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport type { PanelProps } from './Panel.types';\nimport { classes } from './Panel.tokens';\nimport { StyledWrapper } from './Panel.styles';\n\nexport const panelRoot = (Root: RootProps<HTMLDivElement, PanelProps>) =>\n forwardRef<HTMLDivElement, PanelProps>(\n ({
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx, getSizeValueFromProp } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport type { PanelProps } from './Panel.types';\nimport { classes, privateTokens } from './Panel.tokens';\nimport { StyledWrapper } from './Panel.styles';\n\nexport const panelRoot = (Root: RootProps<HTMLDivElement, PanelProps>) =>\n forwardRef<HTMLDivElement, PanelProps>(\n (\n {\n children,\n view,\n size,\n width,\n height,\n customBackgroundColor,\n customContentBackgroundColor,\n className,\n style,\n ...rest\n },\n outerRef,\n ) => {\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n return (\n <Root\n ref={outerRef}\n view={view}\n size={size}\n className={cx(classes.root, className)}\n style={\n {\n ...style,\n [privateTokens.width]: innerWidth,\n [privateTokens.height]: innerHeight,\n [privateTokens.backgrounColor]: customBackgroundColor,\n } as CSSProperties\n }\n {...rest}\n >\n <StyledWrapper customContentBackgroundColor={customContentBackgroundColor}>\n {children}\n </StyledWrapper>\n </Root>\n );\n },\n );\n\nexport const panelConfig = {\n name: 'Panel',\n tag: 'div',\n layout: panelRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["panelRoot","Root","forwardRef","_ref","outerRef","children","view","size","width","height","customBackgroundColor","customContentBackgroundColor","className","style","rest","_objectWithoutProperties","_excluded","innerWidth","getSizeValueFromProp","innerHeight","React","createElement","_extends","ref","cx","classes","root","_objectSpread","_defineProperty","privateTokens","backgrounColor","StyledWrapper","panelConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadius","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;IAaaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,gBAAU,CACN,UAAAC,IAAA,EAaIC,QAAQ,EACP;AAAA,IAAA,IAZGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;MACRC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MACJC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;MACJC,KAAK,GAAAL,IAAA,CAALK,KAAK;MACLC,MAAM,GAAAN,IAAA,CAANM,MAAM;MACNC,qBAAqB,GAAAP,IAAA,CAArBO,qBAAqB;MACrBC,4BAA4B,GAAAR,IAAA,CAA5BQ,4BAA4B;M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U,EAAE;AACR/B,IAAAA,IAAI,EAAE;AACFgC,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDhC,IAAAA,IAAI,EAAE;AACF+B,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDC,IAAAA,YAAY,EAAE;AACVH,MAAAA,GAAG,EAAEI,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNrC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTkC,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;;"}
|
@@ -1,14 +1,24 @@
|
|
1
|
-
require('./Panel.
|
1
|
+
require('./Panel.styles_1g0gq8z.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
5
5
|
|
6
6
|
var react = require('@linaria/react');
|
7
|
+
var Panel_tokens = require('./Panel.tokens.js');
|
7
8
|
|
9
|
+
var _exp = function _exp() {
|
10
|
+
return function (_ref) {
|
11
|
+
var customContentBackgroundColor = _ref.customContentBackgroundColor;
|
12
|
+
return customContentBackgroundColor || "var(".concat(Panel_tokens.tokens.contentBackgroundColor, ")");
|
13
|
+
};
|
14
|
+
};
|
8
15
|
var StyledWrapper = /*#__PURE__*/react.styled('div')({
|
9
16
|
name: "StyledWrapper",
|
10
17
|
"class": "siaxu13",
|
11
|
-
propsAsIs: false
|
18
|
+
propsAsIs: false,
|
19
|
+
vars: {
|
20
|
+
"siaxu13-0": [/*#__PURE__*/_exp()]
|
21
|
+
}
|
12
22
|
});
|
13
23
|
|
14
24
|
exports.StyledWrapper = StyledWrapper;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.styles.js","sources":["../../../src/components/Panel/Panel.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from './Panel.tokens';\n\nexport const StyledWrapper = styled.div
|
1
|
+
{"version":3,"file":"Panel.styles.js","sources":["../../../src/components/Panel/Panel.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from './Panel.tokens';\n\nexport const StyledWrapper = styled.div<{ customContentBackgroundColor?: string }>`\n background: ${({ customContentBackgroundColor }) =>\n customContentBackgroundColor || `var(${tokens.contentBackgroundColor})`};\n height: 100%;\n width: 100%;\n display: inline-flex;\n flex-direction: column;\n position: relative;\n`;\n"],"names":["_exp","_ref","customContentBackgroundColor","concat","tokens","contentBackgroundColor","StyledWrapper","styled","name","class","propsAsIs","vars"],"mappings":";;;;;;;AAEwC,IAAAA,IAAA,GADtBA,SACsBA,IAAAA,GAAA;AAAA,EAAA,OAGtB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,4BAAAA,GAAAA,IAAAA,CAAAA,4BAAAA,CAAAA;AAAAA,IAAAA,OACbA,4BAA4B,IAAAC,MAAAA,CAAAA,MAAA,CAAWC,mBAAM,CAACC,sBAAuB,EAAE,GAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAFxE,IAAMC,aAAa,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAC,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cACjBX,IAC6D,EAAA,CAAA;AAAA,GAAA;AAAA,CAM9E;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.siaxu13{background:var(--siaxu13-0);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
@@ -10,6 +10,21 @@ var classes = {
|
|
10
10
|
hasHeader: 'panel-has-header',
|
11
11
|
isRightClose: 'panel-right-close-button'
|
12
12
|
};
|
13
|
+
var privateTokens = {
|
14
|
+
width: '--plasma_private-panel-width',
|
15
|
+
height: '--plasma_private-panel-height',
|
16
|
+
backgrounColor: '--plasma_private-panel-custom-background-color'
|
17
|
+
};
|
18
|
+
var tokens = {
|
19
|
+
background: '--plasma-panel-background',
|
20
|
+
shadow: '--plasma-panel-shadow',
|
21
|
+
contentBackgroundColor: '--plasma-panel-content-background-color',
|
22
|
+
padding: '--plasma-panel-padding',
|
23
|
+
borderRadius: '--plasma-panel-border-radius',
|
24
|
+
closeColor: '--plasma-panel-close-color'
|
25
|
+
};
|
13
26
|
|
14
27
|
exports.classes = classes;
|
28
|
+
exports.privateTokens = privateTokens;
|
29
|
+
exports.tokens = tokens;
|
15
30
|
//# sourceMappingURL=Panel.tokens.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.tokens.js","sources":["../../../src/components/Panel/Panel.tokens.ts"],"sourcesContent":["export const classes = {\n root: 'panel-root',\n content: 'panel-content',\n header: 'panel-header',\n footer: 'panel-footer',\n hasHeader: 'panel-has-header',\n isRightClose: 'panel-right-close-button',\n};\n\nexport const tokens = {\n background: '--plasma-panel-background',\n shadow: '--plasma-panel-shadow',\n contentBackgroundColor: '--plasma-panel-content-background-color',\n padding: '--plasma-panel-padding',\n borderRadius: '--plasma-panel-border-radius',\n closeColor: '--plasma-panel-close-color',\n};\n"],"names":["classes","root","content","header","footer","hasHeader","isRightClose"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,OAAO,EAAE,eAAe;AACxBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,SAAS,EAAE,kBAAkB;AAC7BC,EAAAA,YAAY,EAAE,0BAAA;AAClB
|
1
|
+
{"version":3,"file":"Panel.tokens.js","sources":["../../../src/components/Panel/Panel.tokens.ts"],"sourcesContent":["export const classes = {\n root: 'panel-root',\n content: 'panel-content',\n header: 'panel-header',\n footer: 'panel-footer',\n hasHeader: 'panel-has-header',\n isRightClose: 'panel-right-close-button',\n};\n\nexport const privateTokens = {\n width: '--plasma_private-panel-width',\n height: '--plasma_private-panel-height',\n backgrounColor: '--plasma_private-panel-custom-background-color',\n};\n\nexport const tokens = {\n background: '--plasma-panel-background',\n shadow: '--plasma-panel-shadow',\n contentBackgroundColor: '--plasma-panel-content-background-color',\n padding: '--plasma-panel-padding',\n borderRadius: '--plasma-panel-border-radius',\n closeColor: '--plasma-panel-close-color',\n};\n"],"names":["classes","root","content","header","footer","hasHeader","isRightClose","privateTokens","width","height","backgrounColor","tokens","background","shadow","contentBackgroundColor","padding","borderRadius","closeColor"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,OAAO,EAAE,eAAe;AACxBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,SAAS,EAAE,kBAAkB;AAC7BC,EAAAA,YAAY,EAAE,0BAAA;AAClB,EAAC;AAEM,IAAMC,aAAa,GAAG;AACzBC,EAAAA,KAAK,EAAE,8BAA8B;AACrCC,EAAAA,MAAM,EAAE,+BAA+B;AACvCC,EAAAA,cAAc,EAAE,gDAAA;AACpB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,MAAM,EAAE,uBAAuB;AAC/BC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,OAAO,EAAE,wBAAwB;AACjCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,UAAU,EAAE,4BAAA;AAChB;;;;;;"}
|
@@ -26,8 +26,8 @@
|
|
26
26
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
27
27
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{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;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
28
28
|
|
29
|
-
.
|
30
|
-
.
|
31
|
-
.
|
29
|
+
.PanelHeader_styles_16qje7n_b5xb1jq__a3864628{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
30
|
+
.PanelHeader_styles_16qje7n_s1hqmxl1__a3864628{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
31
|
+
.PanelHeader_styles_16qje7n_c7hx8go__a3864628{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
32
32
|
|
33
33
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require('./PanelHeader.
|
1
|
+
require('./PanelHeader.styles_16qje7n.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -10,19 +10,19 @@ var Button$1 = require('../../../Button/Button.js');
|
|
10
10
|
|
11
11
|
var mergedButtonConfig = /*#__PURE__*/common.mergeConfig(Button$1.buttonConfig);
|
12
12
|
var Button = /*#__PURE__*/common.component(mergedButtonConfig);
|
13
|
-
var
|
13
|
+
var _exp3 = function _exp3() {
|
14
14
|
return function (_ref) {
|
15
15
|
var placement = _ref.placement;
|
16
16
|
return placement === PanelHeader_types.placements.left ? -1 : 0;
|
17
17
|
};
|
18
18
|
};
|
19
|
-
var
|
19
|
+
var _exp4 = function _exp4() {
|
20
20
|
return function (_ref2) {
|
21
21
|
var placement = _ref2.placement;
|
22
22
|
return !placement || placement === PanelHeader_types.placements.right ? '0.5rem' : '';
|
23
23
|
};
|
24
24
|
};
|
25
|
-
var
|
25
|
+
var _exp5 = function _exp5() {
|
26
26
|
return function (_ref3) {
|
27
27
|
var placement = _ref3.placement;
|
28
28
|
return placement === PanelHeader_types.placements.left ? '0.5rem' : '';
|
@@ -33,9 +33,9 @@ var ButtonWrapper = /*#__PURE__*/react.styled('div')({
|
|
33
33
|
"class": "b5xb1jq",
|
34
34
|
propsAsIs: false,
|
35
35
|
vars: {
|
36
|
-
"b5xb1jq-0": [/*#__PURE__*/
|
37
|
-
"b5xb1jq-1": [/*#__PURE__*/
|
38
|
-
"b5xb1jq-2": [/*#__PURE__*/
|
36
|
+
"b5xb1jq-0": [/*#__PURE__*/_exp3()],
|
37
|
+
"b5xb1jq-1": [/*#__PURE__*/_exp4()],
|
38
|
+
"b5xb1jq-2": [/*#__PURE__*/_exp5()]
|
39
39
|
}
|
40
40
|
});
|
41
41
|
var StyledHeader = /*#__PURE__*/react.styled('div')({
|
@@ -43,10 +43,10 @@ var StyledHeader = /*#__PURE__*/react.styled('div')({
|
|
43
43
|
"class": "s1hqmxl1",
|
44
44
|
propsAsIs: false
|
45
45
|
});
|
46
|
-
var
|
46
|
+
var _exp6 = function _exp6() {
|
47
47
|
return Button;
|
48
48
|
};
|
49
|
-
var CloseIconWrapper = /*#__PURE__*/react.styled(
|
49
|
+
var CloseIconWrapper = /*#__PURE__*/react.styled(_exp6())({
|
50
50
|
name: "CloseIconWrapper",
|
51
51
|
"class": "c7hx8go",
|
52
52
|
propsAsIs: true
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PanelHeader.styles.js","sources":["../../../../../src/components/Panel/ui/PanelHeader/PanelHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { mergeConfig, component } from '../../../../engines';\nimport { buttonConfig } from '../../../Button';\nimport { tokens as buttonTokens } from '../../../Button/Button.tokens';\nimport { tokens } from '../../Panel.tokens';\n\nimport { ClosePlacementType, placements } from './PanelHeader.types';\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedButtonConfig);\n\nexport const ButtonWrapper = styled.div<{ placement?: ClosePlacementType }>`\n background: var(${tokens.background});\n\n order: ${({ placement }) => (placement === placements.left ? -1 : 0)};\n padding-left: ${({ placement }) => (!placement || placement === placements.right ? '0.5rem' : '')};\n padding-right: ${({ placement }) => (placement === placements.left ? '0.5rem' : '')};\n`;\n\nexport const StyledHeader = styled.div`\n height: fit-content;\n flex-grow: 1;\n`;\n\nexport const CloseIconWrapper = styled(Button)`\n position: relative;\n width: 1.5rem;\n min-height: 1.5rem;\n ${buttonTokens.buttonColor}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorHover}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorActive}: var(${tokens.closeColor});\n`;\n"],"names":["mergedButtonConfig","mergeConfig","buttonConfig","Button","component","
|
1
|
+
{"version":3,"file":"PanelHeader.styles.js","sources":["../../../../../src/components/Panel/ui/PanelHeader/PanelHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { mergeConfig, component } from '../../../../engines';\nimport { buttonConfig } from '../../../Button';\nimport { tokens as buttonTokens } from '../../../Button/Button.tokens';\nimport { privateTokens, tokens } from '../../Panel.tokens';\n\nimport { ClosePlacementType, placements } from './PanelHeader.types';\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedButtonConfig);\n\nexport const ButtonWrapper = styled.div<{ placement?: ClosePlacementType }>`\n background: var(${privateTokens.backgrounColor}, var(${tokens.background}));\n\n order: ${({ placement }) => (placement === placements.left ? -1 : 0)};\n padding-left: ${({ placement }) => (!placement || placement === placements.right ? '0.5rem' : '')};\n padding-right: ${({ placement }) => (placement === placements.left ? '0.5rem' : '')};\n`;\n\nexport const StyledHeader = styled.div`\n height: fit-content;\n flex-grow: 1;\n`;\n\nexport const CloseIconWrapper = styled(Button)`\n position: relative;\n width: 1.5rem;\n min-height: 1.5rem;\n ${buttonTokens.buttonColor}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorHover}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorActive}: var(${tokens.closeColor});\n`;\n"],"names":["mergedButtonConfig","mergeConfig","buttonConfig","Button","component","_exp3","_ref","placement","placements","left","_exp4","_ref2","right","_exp5","_ref3","ButtonWrapper","styled","name","class","propsAsIs","vars","StyledHeader","_exp6","C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pDK,KAAiF,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAChFG,KAAkE,EAAA,CAAA;AAAA,GAAA;AAAA,CACtF,EAAA;AAEM,IAAMQ,YAAY,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGjC,EAAA;AAAC,IAAAG,KAAA,GAtBgBA,SAsBhBA,KAAAA,GAAA;AAAA,EAAA,OAEqCnB,MAAM,CAAA;AAAA,CAAA,CAAA;AAAtC,IAAMoB,gBAAgB,gBAAGP,YAAM,CAAAM,KAAA,EAAA,CAAA,CAAA;AAAAL,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAOrC;;;;;;"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
.b5xb1jq{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
1
|
+
.b5xb1jq{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
2
2
|
.s1hqmxl1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
3
3
|
.c7hx8go{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Panel.tokens';\n\nexport const base = css`\n background: var(${tokens.background});\n box-shadow: var(${tokens.shadow});\n box-sizing: border-box;\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAIhB;;;;"}
|
1
|
+
{"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { privateTokens, tokens } from '../../Panel.tokens';\n\nexport const base = css`\n background: var(${privateTokens.backgrounColor}, var(${tokens.background}));\n box-shadow: var(${tokens.shadow});\n box-sizing: border-box;\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAIhB;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.b11yryf5{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|