@salutejs/plasma-new-hope 0.344.0-canary.2402.20461160162.0 → 0.344.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/dist/css/cjs/components/DatePicker/DatePicker.tokens.js +7 -1
- package/dist/css/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.css +42 -14
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +1 -1
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.styles_1lsqv75.css +4 -0
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +42 -14
- package/dist/css/cjs/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/css/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/dist/css/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.css +17 -15
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.js +18 -9
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.js.map +1 -1
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.styles.js +35 -21
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.styles.js.map +1 -1
- package/dist/css/{es/components/InformationWrapper/InformationWrapper.styles_1o4mbq5.css → cjs/components/InformationWrapper/InformationWrapper.styles_p99b7q.css} +2 -2
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/css/cjs/components/InformationWrapper/InformationWrapper.tokens.js.map +1 -1
- package/dist/css/cjs/components/InformationWrapper/ui/{Label/Label.css → Hint/Hint.css} +14 -14
- package/dist/css/cjs/components/InformationWrapper/variations/_read-only/base.js +9 -0
- package/dist/css/cjs/components/InformationWrapper/variations/_read-only/base.js.map +1 -0
- package/dist/css/cjs/components/InformationWrapper/variations/_read-only/base_of19k8.css +1 -0
- package/dist/css/cjs/components/InformationWrapper/variations/_size/base.js +1 -1
- package/dist/css/cjs/components/InformationWrapper/variations/_size/base.js.map +1 -1
- package/dist/css/cjs/components/InformationWrapper/variations/_size/base_192z4sg.css +1 -0
- package/dist/css/cjs/components/Range/Range.css +39 -11
- package/dist/css/cjs/components/Range/Range.js +147 -38
- package/dist/css/cjs/components/Range/Range.js.map +1 -1
- package/dist/css/cjs/components/Range/Range.styles.js +21 -39
- package/dist/css/cjs/components/Range/Range.styles.js.map +1 -1
- package/dist/css/cjs/components/Range/Range.styles_8ts4t3.css +7 -0
- package/dist/css/cjs/components/Range/Range.tokens.js +92 -32
- package/dist/css/cjs/components/Range/Range.tokens.js.map +1 -1
- package/dist/css/cjs/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +22 -0
- package/dist/css/cjs/components/Range/ui/InformationWrapper/InformationWrapper.styles.js.map +1 -0
- package/dist/css/cjs/components/Range/ui/InformationWrapper/InformationWrapper.styles_13qfwt9.css +1 -0
- package/dist/css/cjs/components/Range/variations/_disabled/base.js +1 -1
- package/dist/css/cjs/components/Range/variations/_disabled/base_1cgs2ed.css +1 -0
- package/dist/css/cjs/components/Range/variations/_hint-size/base.js +9 -0
- package/dist/css/cjs/components/Range/variations/_hint-size/base.js.map +1 -0
- package/dist/css/cjs/components/Range/variations/_hint-size/base_x642ct.css +1 -0
- package/dist/css/cjs/components/Range/variations/_hint-view/base.js +9 -0
- package/dist/css/cjs/components/Range/variations/_hint-view/base.js.map +1 -0
- package/dist/css/cjs/components/Range/variations/_hint-view/base_x642ct.css +1 -0
- package/dist/css/cjs/components/Range/variations/_readonly/base.js +1 -1
- package/dist/css/cjs/components/Range/variations/_readonly/base.js.map +1 -1
- package/dist/css/cjs/components/Range/variations/_readonly/base_18ua98l.css +1 -0
- package/dist/css/cjs/components/Range/variations/_size/base.js +1 -1
- package/dist/css/cjs/components/Range/variations/_size/base.js.map +1 -1
- package/dist/css/cjs/components/Range/variations/_size/base_1u545tb.css +1 -0
- package/dist/css/cjs/components/Range/variations/_view/base.js +1 -1
- package/dist/css/cjs/components/Range/variations/_view/base.js.map +1 -1
- package/dist/css/cjs/components/Range/variations/_view/base_1s1elv3.css +1 -0
- package/dist/css/cjs/components/TextArea/TextArea.js +1 -1
- package/dist/css/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/cjs/components/TextField/TextField.js +1 -1
- package/dist/css/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/css/cjs/components/TimePicker/TimePicker.js +1 -1
- package/dist/css/cjs/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/css/cjs/index.css +31 -30
- package/dist/css/es/components/DatePicker/DatePicker.tokens.js +7 -1
- package/dist/css/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.css +42 -14
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.styles.js +1 -1
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.styles_1lsqv75.css +4 -0
- package/dist/css/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +42 -14
- package/dist/css/es/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/css/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/dist/css/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/dist/css/es/components/InformationWrapper/InformationWrapper.css +17 -15
- package/dist/css/es/components/InformationWrapper/InformationWrapper.js +18 -9
- package/dist/css/es/components/InformationWrapper/InformationWrapper.js.map +1 -1
- package/dist/css/es/components/InformationWrapper/InformationWrapper.styles.js +35 -21
- package/dist/css/es/components/InformationWrapper/InformationWrapper.styles.js.map +1 -1
- package/dist/css/{cjs/components/InformationWrapper/InformationWrapper.styles_1o4mbq5.css → es/components/InformationWrapper/InformationWrapper.styles_p99b7q.css} +2 -2
- package/dist/css/es/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/css/es/components/InformationWrapper/InformationWrapper.tokens.js.map +1 -1
- package/dist/css/es/components/InformationWrapper/ui/{Label/Label.css → Hint/Hint.css} +14 -14
- package/dist/css/es/components/InformationWrapper/variations/_read-only/base.js +5 -0
- package/dist/css/es/components/InformationWrapper/variations/_read-only/base.js.map +1 -0
- package/dist/css/es/components/InformationWrapper/variations/_read-only/base_of19k8.css +1 -0
- package/dist/css/es/components/InformationWrapper/variations/_size/base.js +1 -1
- package/dist/css/es/components/InformationWrapper/variations/_size/base.js.map +1 -1
- package/dist/css/es/components/InformationWrapper/variations/_size/base_192z4sg.css +1 -0
- package/dist/css/es/components/Range/Range.css +39 -11
- package/dist/css/es/components/Range/Range.js +150 -41
- package/dist/css/es/components/Range/Range.js.map +1 -1
- package/dist/css/es/components/Range/Range.styles.js +21 -36
- package/dist/css/es/components/Range/Range.styles.js.map +1 -1
- package/dist/css/es/components/Range/Range.styles_8ts4t3.css +7 -0
- package/dist/css/es/components/Range/Range.tokens.js +92 -32
- package/dist/css/es/components/Range/Range.tokens.js.map +1 -1
- package/dist/css/es/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +18 -0
- package/dist/css/es/components/Range/ui/InformationWrapper/InformationWrapper.styles.js.map +1 -0
- package/dist/css/es/components/Range/ui/InformationWrapper/InformationWrapper.styles_13qfwt9.css +1 -0
- package/dist/css/es/components/Range/variations/_disabled/base.js +1 -1
- package/dist/css/es/components/Range/variations/_disabled/base_1cgs2ed.css +1 -0
- package/dist/css/es/components/Range/variations/_hint-size/base.js +5 -0
- package/dist/css/es/components/Range/variations/_hint-size/base.js.map +1 -0
- package/dist/css/es/components/Range/variations/_hint-size/base_x642ct.css +1 -0
- package/dist/css/es/components/Range/variations/_hint-view/base.js +5 -0
- package/dist/css/es/components/Range/variations/_hint-view/base.js.map +1 -0
- package/dist/css/es/components/Range/variations/_hint-view/base_x642ct.css +1 -0
- package/dist/css/es/components/Range/variations/_readonly/base.js +1 -1
- package/dist/css/es/components/Range/variations/_readonly/base.js.map +1 -1
- package/dist/css/es/components/Range/variations/_readonly/base_18ua98l.css +1 -0
- package/dist/css/es/components/Range/variations/_size/base.js +1 -1
- package/dist/css/es/components/Range/variations/_size/base.js.map +1 -1
- package/dist/css/es/components/Range/variations/_size/base_1u545tb.css +1 -0
- package/dist/css/es/components/Range/variations/_view/base.js +1 -1
- package/dist/css/es/components/Range/variations/_view/base.js.map +1 -1
- package/dist/css/es/components/Range/variations/_view/base_1s1elv3.css +1 -0
- package/dist/css/es/components/TextArea/TextArea.js +1 -1
- package/dist/css/es/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/es/components/TextField/TextField.js +1 -1
- package/dist/css/es/components/TextField/TextField.js.map +1 -1
- package/dist/css/es/components/TimePicker/TimePicker.js +1 -1
- package/dist/css/es/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/css/es/index.css +31 -30
- package/dist/emotion/cjs/components/DatePicker/DatePicker.tokens.js +9 -3
- package/dist/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/emotion/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +7 -7
- package/dist/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +7 -7
- package/dist/emotion/cjs/components/InformationWrapper/InformationWrapper.js +16 -7
- package/dist/emotion/cjs/components/InformationWrapper/InformationWrapper.styles.js +39 -33
- package/dist/emotion/cjs/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/emotion/cjs/components/InformationWrapper/variations/_read-only/base.js +14 -0
- package/dist/emotion/cjs/components/InformationWrapper/variations/_size/base.js +1 -1
- package/dist/emotion/cjs/components/Range/Range.js +186 -33
- package/dist/emotion/cjs/components/Range/Range.styles.js +22 -43
- package/dist/emotion/cjs/components/Range/Range.tokens.js +90 -30
- package/dist/emotion/cjs/components/Range/ui/Hint/index.js +11 -0
- package/dist/emotion/cjs/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +25 -0
- package/dist/emotion/cjs/components/Range/ui/InformationWrapper/index.js +11 -0
- package/dist/emotion/cjs/components/Range/ui/index.js +19 -0
- package/dist/emotion/cjs/components/Range/variations/_hint-size/base.js +12 -0
- package/dist/emotion/cjs/components/Range/variations/_hint-view/base.js +12 -0
- package/dist/emotion/cjs/components/Range/variations/_readonly/base.js +1 -1
- package/dist/emotion/cjs/components/Range/variations/_size/base.js +5 -1
- package/dist/emotion/cjs/components/Range/variations/_view/base.js +3 -2
- package/dist/emotion/cjs/components/TextArea/TextArea.js +2 -2
- package/dist/emotion/cjs/components/TextField/TextField.js +2 -2
- package/dist/emotion/cjs/components/TimePicker/TimePicker.js +1 -1
- package/dist/emotion/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/dist/emotion/cjs/examples/components/DatePicker/DatePicker.config.js +9 -9
- package/dist/emotion/cjs/examples/components/Range/Range.clear.config.js +45 -0
- package/dist/emotion/cjs/examples/components/Range/Range.config.js +18 -9
- package/dist/emotion/cjs/examples/components/Range/Range.js +29 -5
- package/dist/emotion/es/components/DatePicker/DatePicker.tokens.js +9 -3
- package/dist/emotion/es/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/emotion/es/components/DatePicker/RangeDate/RangeDate.styles.js +7 -7
- package/dist/emotion/es/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +7 -7
- package/dist/emotion/es/components/InformationWrapper/InformationWrapper.js +12 -3
- package/dist/emotion/es/components/InformationWrapper/InformationWrapper.styles.js +39 -33
- package/dist/emotion/es/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/emotion/es/components/InformationWrapper/variations/_read-only/base.js +4 -0
- package/dist/emotion/es/components/InformationWrapper/variations/_size/base.js +1 -1
- package/dist/emotion/es/components/Range/Range.js +184 -31
- package/dist/emotion/es/components/Range/Range.styles.js +19 -31
- package/dist/emotion/es/components/Range/Range.tokens.js +90 -30
- package/dist/emotion/es/components/Range/ui/Hint/index.js +1 -0
- package/dist/emotion/es/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +10 -0
- package/dist/emotion/es/components/Range/ui/InformationWrapper/index.js +1 -0
- package/dist/emotion/es/components/Range/ui/index.js +2 -0
- package/dist/emotion/es/components/Range/variations/_hint-size/base.js +2 -0
- package/dist/emotion/es/components/Range/variations/_hint-view/base.js +2 -0
- package/dist/emotion/es/components/Range/variations/_readonly/base.js +2 -2
- package/dist/emotion/es/components/Range/variations/_size/base.js +6 -2
- package/dist/emotion/es/components/Range/variations/_view/base.js +4 -3
- package/dist/emotion/es/components/TextArea/TextArea.js +2 -2
- package/dist/emotion/es/components/TextField/TextField.js +2 -2
- package/dist/emotion/es/components/TimePicker/TimePicker.js +1 -1
- package/dist/emotion/es/examples/components/DatePicker/DatePicker.config.js +9 -9
- package/dist/emotion/es/examples/components/Range/Range.clear.config.js +35 -0
- package/dist/emotion/es/examples/components/Range/Range.config.js +18 -9
- package/dist/emotion/es/examples/components/Range/Range.js +16 -3
- package/dist/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +9 -3
- package/dist/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +7 -6
- package/dist/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +4 -4
- package/dist/styled-components/cjs/components/InformationWrapper/InformationWrapper.js +16 -7
- package/dist/styled-components/cjs/components/InformationWrapper/InformationWrapper.styles.js +27 -18
- package/dist/styled-components/cjs/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/styled-components/cjs/components/InformationWrapper/variations/_read-only/base.js +28 -0
- package/dist/styled-components/cjs/components/InformationWrapper/variations/_size/base.js +1 -2
- package/dist/styled-components/cjs/components/Range/Range.js +186 -33
- package/dist/styled-components/cjs/components/Range/Range.styles.js +44 -62
- package/dist/styled-components/cjs/components/Range/Range.tokens.js +90 -30
- package/dist/styled-components/cjs/components/Range/ui/Hint/index.js +11 -0
- package/dist/styled-components/cjs/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +159 -0
- package/dist/styled-components/cjs/components/Range/ui/InformationWrapper/index.js +11 -0
- package/dist/styled-components/cjs/components/Range/ui/index.js +19 -0
- package/dist/styled-components/cjs/components/Range/variations/_hint-size/base.js +14 -0
- package/dist/styled-components/cjs/components/Range/variations/_hint-view/base.js +14 -0
- package/dist/styled-components/cjs/components/Range/variations/_readonly/base.js +1 -5
- package/dist/styled-components/cjs/components/Range/variations/_size/base.js +16 -28
- package/dist/styled-components/cjs/components/Range/variations/_view/base.js +70 -10
- package/dist/styled-components/cjs/components/TextArea/TextArea.js +1 -1
- package/dist/styled-components/cjs/components/TextField/TextField.js +1 -1
- package/dist/styled-components/cjs/components/TimePicker/TimePicker.js +1 -1
- package/dist/styled-components/cjs/examples/components/DatePicker/DatePicker.config.js +28 -4
- package/dist/styled-components/cjs/examples/components/Range/Range.clear.config.js +457 -0
- package/dist/styled-components/cjs/examples/components/Range/Range.config.js +209 -79
- package/dist/styled-components/cjs/examples/components/Range/Range.js +29 -5
- package/dist/styled-components/es/components/DatePicker/DatePicker.tokens.js +9 -3
- package/dist/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +2 -2
- package/dist/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +7 -6
- package/dist/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +1 -1
- package/dist/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +4 -4
- package/dist/styled-components/es/components/InformationWrapper/InformationWrapper.js +12 -3
- package/dist/styled-components/es/components/InformationWrapper/InformationWrapper.styles.js +27 -18
- package/dist/styled-components/es/components/InformationWrapper/InformationWrapper.tokens.js +6 -1
- package/dist/styled-components/es/components/InformationWrapper/variations/_read-only/base.js +18 -0
- package/dist/styled-components/es/components/InformationWrapper/variations/_size/base.js +1 -2
- package/dist/styled-components/es/components/Range/Range.js +184 -31
- package/dist/styled-components/es/components/Range/Range.styles.js +41 -50
- package/dist/styled-components/es/components/Range/Range.tokens.js +90 -30
- package/dist/styled-components/es/components/Range/ui/Hint/index.js +1 -0
- package/dist/styled-components/es/components/Range/ui/InformationWrapper/InformationWrapper.styles.js +144 -0
- package/dist/styled-components/es/components/Range/ui/InformationWrapper/index.js +1 -0
- package/dist/styled-components/es/components/Range/ui/index.js +2 -0
- package/dist/styled-components/es/components/Range/variations/_hint-size/base.js +4 -0
- package/dist/styled-components/es/components/Range/variations/_hint-view/base.js +4 -0
- package/dist/styled-components/es/components/Range/variations/_readonly/base.js +2 -6
- package/dist/styled-components/es/components/Range/variations/_size/base.js +17 -29
- package/dist/styled-components/es/components/Range/variations/_view/base.js +71 -11
- package/dist/styled-components/es/components/TextArea/TextArea.js +1 -1
- package/dist/styled-components/es/components/TextField/TextField.js +1 -1
- package/dist/styled-components/es/components/TimePicker/TimePicker.js +1 -1
- package/dist/styled-components/es/examples/components/Combobox/Combobox.js +7 -0
- package/dist/styled-components/es/examples/components/DatePicker/DatePicker.config.js +28 -4
- package/dist/styled-components/es/examples/components/Range/Range.clear.config.js +447 -0
- package/dist/styled-components/es/examples/components/Range/Range.config.js +209 -79
- package/dist/styled-components/es/examples/components/Range/Range.js +16 -3
- package/package.json +5 -5
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/DatePicker.tokens.d.ts +7 -1
- package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts +38 -10
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +555 -3
- package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +1 -1
- package/types/components/DateTimePicker/ui/Input/Input.styles.d.ts.map +1 -1
- package/types/components/InformationWrapper/InformationWrapper.d.ts +4 -0
- package/types/components/InformationWrapper/InformationWrapper.d.ts.map +1 -1
- package/types/components/InformationWrapper/InformationWrapper.styles.d.ts.map +1 -1
- package/types/components/InformationWrapper/InformationWrapper.tokens.d.ts +5 -0
- package/types/components/InformationWrapper/InformationWrapper.tokens.d.ts.map +1 -1
- package/types/components/InformationWrapper/InformationWrapper.types.d.ts +5 -0
- package/types/components/InformationWrapper/InformationWrapper.types.d.ts.map +1 -1
- package/types/components/InformationWrapper/variations/_read-only/base.d.ts +2 -0
- package/types/components/InformationWrapper/variations/_read-only/base.d.ts.map +1 -0
- package/types/components/InformationWrapper/variations/_size/base.d.ts.map +1 -1
- package/types/components/Range/Range.d.ts +11 -3
- package/types/components/Range/Range.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +3 -6
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Range/Range.tokens.d.ts +73 -13
- package/types/components/Range/Range.tokens.d.ts.map +1 -1
- package/types/components/Range/Range.types.d.ts +95 -3
- package/types/components/Range/Range.types.d.ts.map +1 -1
- package/types/components/Range/ui/Hint/index.d.ts +2 -0
- package/types/components/Range/ui/Hint/index.d.ts.map +1 -0
- package/types/components/Range/ui/InformationWrapper/InformationWrapper.styles.d.ts +56 -0
- package/types/components/Range/ui/InformationWrapper/InformationWrapper.styles.d.ts.map +1 -0
- package/types/components/Range/ui/InformationWrapper/index.d.ts +2 -0
- package/types/components/Range/ui/InformationWrapper/index.d.ts.map +1 -0
- package/types/components/Range/ui/index.d.ts +3 -0
- package/types/components/Range/ui/index.d.ts.map +1 -0
- package/types/components/Range/variations/_hint-size/base.d.ts +2 -0
- package/types/components/Range/variations/_hint-size/base.d.ts.map +1 -0
- package/types/components/Range/variations/_hint-view/base.d.ts +2 -0
- package/types/components/Range/variations/_hint-view/base.d.ts.map +1 -0
- package/types/components/Range/variations/_readonly/base.d.ts.map +1 -1
- package/types/components/Range/variations/_size/base.d.ts.map +1 -1
- package/types/components/Range/variations/_view/base.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +1 -1
- package/types/components/TextField/TextField.types.d.ts +1 -1
- package/types/components/TimePicker/TimePicker.styles.d.ts.map +1 -1
- package/types/examples/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/components/DatePicker/DatePicker.config.d.ts.map +1 -1
- package/types/examples/components/DatePicker/DatePicker.d.ts +19 -5
- package/types/examples/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/types/examples/components/InformationWrapper/InformationWrapper.d.ts +2 -0
- package/types/examples/components/InformationWrapper/InformationWrapper.d.ts.map +1 -1
- package/types/examples/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/components/NumberFormat/NumberFormat.d.ts.map +1 -1
- package/types/examples/components/Range/Range.clear.config.d.ts +34 -0
- package/types/examples/components/Range/Range.clear.config.d.ts.map +1 -0
- package/types/examples/components/Range/Range.config.d.ts +9 -0
- package/types/examples/components/Range/Range.config.d.ts.map +1 -1
- package/types/examples/components/Range/Range.d.ts +2224 -7
- package/types/examples/components/Range/Range.d.ts.map +1 -1
- package/types/examples/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/components/TextField/TextField.d.ts.map +1 -1
- package/dist/css/cjs/components/DatePicker/RangeDate/RangeDate.styles_21hloy.css +0 -4
- package/dist/css/cjs/components/InformationWrapper/variations/_size/base_xg1ywk.css +0 -1
- package/dist/css/cjs/components/Range/Range.styles_it2utg.css +0 -10
- package/dist/css/cjs/components/Range/variations/_disabled/base_14rf606.css +0 -1
- package/dist/css/cjs/components/Range/variations/_readonly/base_sjb43y.css +0 -1
- package/dist/css/cjs/components/Range/variations/_size/base_13h9f8f.css +0 -1
- package/dist/css/cjs/components/Range/variations/_view/base_ems82y.css +0 -1
- package/dist/css/es/components/DatePicker/RangeDate/RangeDate.styles_21hloy.css +0 -4
- package/dist/css/es/components/InformationWrapper/variations/_size/base_xg1ywk.css +0 -1
- package/dist/css/es/components/Range/Range.styles_it2utg.css +0 -10
- package/dist/css/es/components/Range/variations/_disabled/base_14rf606.css +0 -1
- package/dist/css/es/components/Range/variations/_readonly/base_sjb43y.css +0 -1
- package/dist/css/es/components/Range/variations/_size/base_13h9f8f.css +0 -1
- package/dist/css/es/components/Range/variations/_view/base_ems82y.css +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export var classes = {
|
|
2
2
|
withoutLabel: 'info-wrapper-without-label',
|
|
3
|
-
requiredAlignLeft: 'info-wrapper-required-align-left'
|
|
3
|
+
requiredAlignLeft: 'info-wrapper-required-align-left',
|
|
4
|
+
leftHelper: 'info-wrapper-left-helper'
|
|
4
5
|
};
|
|
5
6
|
export var tokens = {
|
|
6
7
|
/** Токены для label */ indicatorWrapperGap: '--plasma-info-wrapper-indicator-wrapper-gap',
|
|
@@ -13,9 +14,11 @@ export var tokens = {
|
|
|
13
14
|
labelLetterSpacing: '--plasma-info-wrapper-label-letter-spacing',
|
|
14
15
|
labelLineHeight: '--plasma-info-wrapper-label-line-height',
|
|
15
16
|
labelColor: '--plasma-info-wrapper-label-color',
|
|
17
|
+
labelColorReadOnly: '--plasma-info-wrapper-label-color-readonly',
|
|
16
18
|
contentGap: '--plasma-info-wrapper-content-gap',
|
|
17
19
|
titleCaptionOffset: '--plasma-info-wrapper-title-caption-offset',
|
|
18
20
|
titleCaptionColor: '--plasma-info-wrapper-title-caption-color',
|
|
21
|
+
titleCaptionColorReadOnly: '--plasma-info-wrapper-title-caption-color-readonly',
|
|
19
22
|
titleCaptionFontFamily: '--plasma-info-wrapper-title-caption-font-family',
|
|
20
23
|
titleCaptionFontStyle: '--plasma-info-wrapper-title-caption-font-style',
|
|
21
24
|
titleCaptionFontSize: '--plasma-info-wrapper-title-caption-font-size',
|
|
@@ -59,6 +62,8 @@ export var tokens = {
|
|
|
59
62
|
/** Токены для optional */ optionalColor: '--plasma-info-wrapper-optional-color',
|
|
60
63
|
/** Токены для подписей снизу */ leftHelperColor: '--plasma-info-wrapper-left-helper-color',
|
|
61
64
|
rightHelperColor: '--plasma-info-wrapper-right-helper-color',
|
|
65
|
+
leftHelperColorReadOnly: '--plasma-info-wrapper-left-helper-color-readonly',
|
|
66
|
+
rightHelperColorReadOnly: '--plasma-info-wrapper-right-helper-color-readonly',
|
|
62
67
|
helpersPadding: '--plasma-info-wrapper-helpers-padding-top',
|
|
63
68
|
helpersGap: '--plasma-info-wrapper-helpers-gap',
|
|
64
69
|
leftHelperFontFamily: '--plasma-info-wrapper-left-helper-font-family',
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { css } from "@emotion/react";
|
|
2
|
+
import { Label, LeftHelper, RightHelper, TitleCaption } from "../../InformationWrapper.styles";
|
|
3
|
+
import { tokens } from "../../InformationWrapper.tokens";
|
|
4
|
+
export var base = /*#__PURE__*/ css("&[readonly]{", Label, "{color:var(", tokens.labelColorReadOnly, ",var(", tokens.labelColor, "));}", TitleCaption, "{color:var(", tokens.titleCaptionColorReadOnly, ",var(", tokens.titleCaptionColor, "));}", LeftHelper, "{color:var(", tokens.leftHelperColorReadOnly, ",var(", tokens.leftHelperColor, "));}", RightHelper, "{color:var(", tokens.rightHelperColorReadOnly, ",var(", tokens.rightHelperColor, "));}}", "base", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9JbmZvcm1hdGlvbldyYXBwZXIvdmFyaWF0aW9ucy9fcmVhZC1vbmx5L2Jhc2UudHMiLCJzb3VyY2VzIjpbInNyYy1lbW90aW9uL2NvbXBvbmVudHMvSW5mb3JtYXRpb25XcmFwcGVyL3ZhcmlhdGlvbnMvX3JlYWQtb25seS9iYXNlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgTGFiZWwsIExlZnRIZWxwZXIsIFJpZ2h0SGVscGVyLCBUaXRsZUNhcHRpb24gfSBmcm9tICcuLi8uLi9JbmZvcm1hdGlvbldyYXBwZXIuc3R5bGVzJztcbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0luZm9ybWF0aW9uV3JhcHBlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmW3JlYWRvbmx5XSB7XG4gICAgICAgICR7TGFiZWx9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMubGFiZWxDb2xvclJlYWRPbmx5fSwgdmFyKCR7dG9rZW5zLmxhYmVsQ29sb3J9KSk7XG4gICAgICAgIH1cblxuICAgICAgICAke1RpdGxlQ2FwdGlvbn0ge1xuICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy50aXRsZUNhcHRpb25Db2xvclJlYWRPbmx5fSwgdmFyKCR7dG9rZW5zLnRpdGxlQ2FwdGlvbkNvbG9yfSkpO1xuICAgICAgICB9XG5cbiAgICAgICAgJHtMZWZ0SGVscGVyfSB7XG4gICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmxlZnRIZWxwZXJDb2xvclJlYWRPbmx5fSwgdmFyKCR7dG9rZW5zLmxlZnRIZWxwZXJDb2xvcn0pKTtcbiAgICAgICAgfVxuXG4gICAgICAgICR7UmlnaHRIZWxwZXJ9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMucmlnaHRIZWxwZXJDb2xvclJlYWRPbmx5fSwgdmFyKCR7dG9rZW5zLnJpZ2h0SGVscGVyQ29sb3J9KSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtvQiJ9 */");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import { Helpers, HintTargetWrapper, HintWrapper, Label, LeftHelper, OptionalText, RightHelper, TitleCaption } from "../../InformationWrapper.styles";
|
|
3
3
|
import { tokens } from "../../InformationWrapper.tokens";
|
|
4
|
-
export var base = /*#__PURE__*/ css(Label, ",", OptionalText, "{font-family:var(", tokens.labelFontFamily, ");font-size:var(", tokens.labelFontSize, ");font-style:var(", tokens.labelFontStyle, ");font-weight:var(", tokens.labelFontWeight, ");letter-spacing:var(", tokens.labelLetterSpacing, ");line-height:var(", tokens.labelLineHeight, ");}", HintWrapper, "{margin:var(", tokens.hintMargin, ");width:var(", tokens.hintTargetSize, ");height:var(", tokens.hintTargetSize, ");}", HintTargetWrapper, "{width:var(", tokens.hintTargetSize, ");height:var(", tokens.hintTargetSize, ");
|
|
4
|
+
export var base = /*#__PURE__*/ css(Label, ",", OptionalText, "{font-family:var(", tokens.labelFontFamily, ");font-size:var(", tokens.labelFontSize, ");font-style:var(", tokens.labelFontStyle, ");font-weight:var(", tokens.labelFontWeight, ");letter-spacing:var(", tokens.labelLetterSpacing, ");line-height:var(", tokens.labelLineHeight, ");}", HintWrapper, "{margin:var(", tokens.hintMargin, ");width:var(", tokens.hintTargetSize, ");height:var(", tokens.hintTargetSize, ");}", HintTargetWrapper, "{width:var(", tokens.hintTargetSize, ");height:var(", tokens.hintTargetSize, ");}", TitleCaption, "{font-family:var(", tokens.titleCaptionFontFamily, ");font-size:var(", tokens.titleCaptionFontSize, ");font-style:var(", tokens.titleCaptionFontStyle, ");font-weight:var(", tokens.titleCaptionFontWeight, ");letter-spacing:var(", tokens.titleCaptionLetterSpacing, ");line-height:var(", tokens.titleCaptionLineHeight, ");}", Helpers, "{padding:var(", tokens.helpersPadding, ");gap:var(", tokens.helpersGap, ");}", LeftHelper, "{font-family:var(", tokens.leftHelperFontFamily, ");font-size:var(", tokens.leftHelperFontSize, ");font-style:var(", tokens.leftHelperFontStyle, ");font-weight:var(", tokens.leftHelperFontWeight, ");letter-spacing:var(", tokens.leftHelperLetterSpacing, ");line-height:var(", tokens.leftHelperLineHeight, ");}", RightHelper, "{font-family:var(", tokens.rightHelperFontFamily, ");font-size:var(", tokens.rightHelperFontSize, ");font-style:var(", tokens.rightHelperFontStyle, ");font-weight:var(", tokens.rightHelperFontWeight, ");letter-spacing:var(", tokens.rightHelperLetterSpacing, ");line-height:var(", tokens.rightHelperLineHeight, ");}", "base", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9JbmZvcm1hdGlvbldyYXBwZXIvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIiwic291cmNlcyI6WyJzcmMtZW1vdGlvbi9jb21wb25lbnRzL0luZm9ybWF0aW9uV3JhcHBlci92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQge1xuICAgIEhlbHBlcnMsXG4gICAgSGludFRhcmdldFdyYXBwZXIsXG4gICAgSGludFdyYXBwZXIsXG4gICAgTGFiZWwsXG4gICAgTGVmdEhlbHBlcixcbiAgICBPcHRpb25hbFRleHQsXG4gICAgUmlnaHRIZWxwZXIsXG4gICAgVGl0bGVDYXB0aW9uLFxufSBmcm9tICcuLi8uLi9JbmZvcm1hdGlvbldyYXBwZXIuc3R5bGVzJztcbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0luZm9ybWF0aW9uV3JhcHBlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAke0xhYmVsfSwgJHtPcHRpb25hbFRleHR9IHtcbiAgICAgICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5sYWJlbEZvbnRGYW1pbHl9KTtcbiAgICAgICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMubGFiZWxGb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMubGFiZWxGb250U3R5bGV9KTtcbiAgICAgICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5sYWJlbEZvbnRXZWlnaHR9KTtcbiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sYWJlbExldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5sYWJlbExpbmVIZWlnaHR9KTtcbiAgICB9XG5cbiAgICAke0hpbnRXcmFwcGVyfSB7XG4gICAgICAgIG1hcmdpbjogdmFyKCR7dG9rZW5zLmhpbnRNYXJnaW59KTtcbiAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5oaW50VGFyZ2V0U2l6ZX0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oaW50VGFyZ2V0U2l6ZX0pO1xuICAgIH1cblxuICAgICR7SGludFRhcmdldFdyYXBwZXJ9IHtcbiAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy5oaW50VGFyZ2V0U2l6ZX0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oaW50VGFyZ2V0U2l6ZX0pO1xuICAgIH1cblxuICAgICR7VGl0bGVDYXB0aW9ufSB7XG4gICAgICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudGl0bGVDYXB0aW9uRm9udEZhbWlseX0pO1xuICAgICAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50aXRsZUNhcHRpb25Gb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudGl0bGVDYXB0aW9uRm9udFN0eWxlfSk7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMudGl0bGVDYXB0aW9uRm9udFdlaWdodH0pO1xuICAgICAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLnRpdGxlQ2FwdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50aXRsZUNhcHRpb25MaW5lSGVpZ2h0fSk7XG4gICAgfVxuXG4gICAgJHtIZWxwZXJzfSB7XG4gICAgICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5oZWxwZXJzUGFkZGluZ30pO1xuICAgICAgICBnYXA6IHZhcigke3Rva2Vucy5oZWxwZXJzR2FwfSk7XG4gICAgfVxuXG4gICAgJHtMZWZ0SGVscGVyfSB7XG4gICAgICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMubGVmdEhlbHBlckZvbnRGYW1pbHl9KTtcbiAgICAgICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMubGVmdEhlbHBlckZvbnRTaXplfSk7XG4gICAgICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5sZWZ0SGVscGVyRm9udFN0eWxlfSk7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMubGVmdEhlbHBlckZvbnRXZWlnaHR9KTtcbiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZWZ0SGVscGVyTGV0dGVyU3BhY2luZ30pO1xuICAgICAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLmxlZnRIZWxwZXJMaW5lSGVpZ2h0fSk7XG4gICAgfVxuXG4gICAgJHtSaWdodEhlbHBlcn0ge1xuICAgICAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLnJpZ2h0SGVscGVyRm9udEZhbWlseX0pO1xuICAgICAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy5yaWdodEhlbHBlckZvbnRTaXplfSk7XG4gICAgICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5yaWdodEhlbHBlckZvbnRTdHlsZX0pO1xuICAgICAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnJpZ2h0SGVscGVyRm9udFdlaWdodH0pO1xuICAgICAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLnJpZ2h0SGVscGVyTGV0dGVyU3BhY2luZ30pO1xuICAgICAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLnJpZ2h0SGVscGVyTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY29CIn0= */");
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _array_with_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
1
9
|
function _define_property(obj, key, value) {
|
|
2
10
|
if (key in obj) {
|
|
3
11
|
Object.defineProperty(obj, key, {
|
|
@@ -11,6 +19,33 @@ function _define_property(obj, key, value) {
|
|
|
11
19
|
}
|
|
12
20
|
return obj;
|
|
13
21
|
}
|
|
22
|
+
function _iterable_to_array_limit(arr, i) {
|
|
23
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24
|
+
if (_i == null) return;
|
|
25
|
+
var _arr = [];
|
|
26
|
+
var _n = true;
|
|
27
|
+
var _d = false;
|
|
28
|
+
var _s, _e;
|
|
29
|
+
try {
|
|
30
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
31
|
+
_arr.push(_s.value);
|
|
32
|
+
if (i && _arr.length === i) break;
|
|
33
|
+
}
|
|
34
|
+
} catch (err) {
|
|
35
|
+
_d = true;
|
|
36
|
+
_e = err;
|
|
37
|
+
} finally{
|
|
38
|
+
try {
|
|
39
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
40
|
+
} finally{
|
|
41
|
+
if (_d) throw _e;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return _arr;
|
|
45
|
+
}
|
|
46
|
+
function _non_iterable_rest() {
|
|
47
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
+
}
|
|
14
49
|
function _object_spread(target) {
|
|
15
50
|
for(var i = 1; i < arguments.length; i++){
|
|
16
51
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -53,29 +88,42 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
53
88
|
}
|
|
54
89
|
return target;
|
|
55
90
|
}
|
|
56
|
-
|
|
91
|
+
function _sliced_to_array(arr, i) {
|
|
92
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
93
|
+
}
|
|
94
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
95
|
+
if (!o) return;
|
|
96
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
97
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
98
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
99
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
100
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
101
|
+
}
|
|
102
|
+
import React, { forwardRef, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
103
|
+
import { useOutsideClick } from "../../hooks";
|
|
104
|
+
import { useForkRef } from "@salutejs/plasma-core";
|
|
57
105
|
import { cx } from "../../utils";
|
|
58
106
|
import { base as sizeCSS } from "./variations/_size/base";
|
|
59
107
|
import { base as viewCSS } from "./variations/_view/base";
|
|
108
|
+
import { base as hintViewCSS } from "./variations/_hint-view/base";
|
|
109
|
+
import { base as hintSizeCSS } from "./variations/_hint-size/base";
|
|
60
110
|
import { base as disabledCSS } from "./variations/_disabled/base";
|
|
61
111
|
import { base as readOnlyCSS } from "./variations/_readonly/base";
|
|
62
112
|
import { getChangeHandler, getSearchHandler } from "./utils";
|
|
63
|
-
import { ContentWrapper,
|
|
113
|
+
import { ContentWrapper, StyledContentLeft, StyledContentRight, StyledContentRightWrapper, StyledDivider, StyledInput, base } from "./Range.styles";
|
|
64
114
|
import { classes } from "./Range.tokens";
|
|
115
|
+
import { HintComponent, InformationWrapperUI } from "./ui";
|
|
65
116
|
export var rangeRoot = function(Root) {
|
|
66
117
|
return /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"disabled",
|
|
77
|
-
"dividerVariant",
|
|
78
|
-
"dividerIcon",
|
|
118
|
+
var className = _param.className, // controlled
|
|
119
|
+
firstValue = _param.firstValue, secondValue = _param.secondValue, firstValueError = _param.firstValueError, secondValueError = _param.secondValueError, firstValueSuccess = _param.firstValueSuccess, secondValueSuccess = _param.secondValueSuccess, firstPlaceholder = _param.firstPlaceholder, secondPlaceholder = _param.secondPlaceholder, // variations
|
|
120
|
+
appearance = _param.appearance, hasClearDivider = _param.hasClearDivider, view = _param.view, size = _param.size, _param_readOnly = _param.readOnly, readOnly = _param_readOnly === void 0 ? false : _param_readOnly, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_required = _param.required, required = _param_required === void 0 ? false : _param_required, _param_requiredIndicatorPlacement = _param.requiredIndicatorPlacement, requiredIndicatorPlacement = _param_requiredIndicatorPlacement === void 0 ? 'right' : _param_requiredIndicatorPlacement, _param_hasRequiredIndicator = _param.hasRequiredIndicator, hasRequiredIndicator = _param_hasRequiredIndicator === void 0 ? false : _param_hasRequiredIndicator, _param_hintTrigger = _param.// hint
|
|
121
|
+
hintTrigger, hintTrigger = _param_hintTrigger === void 0 ? 'hover' : _param_hintTrigger, hintText = _param.hintText, _param_hintView = _param.hintView, hintView = _param_hintView === void 0 ? 'default' : _param_hintView, _param_hintSize = _param.hintSize, hintSize = _param_hintSize === void 0 ? 'm' : _param_hintSize, hintTargetIcon = _param.hintTargetIcon, _param_hintTargetPlacement = _param.hintTargetPlacement, hintTargetPlacement = _param_hintTargetPlacement === void 0 ? 'outer' : _param_hintTargetPlacement, _param_hintPlacement = _param.hintPlacement, hintPlacement = _param_hintPlacement === void 0 ? 'auto' : _param_hintPlacement, hintHasArrow = _param.hintHasArrow, _param_hintOffset = _param.hintOffset, hintOffset = _param_hintOffset === void 0 ? [
|
|
122
|
+
0,
|
|
123
|
+
0
|
|
124
|
+
] : _param_hintOffset, hintWidth = _param.hintWidth, hintContentLeft = _param.hintContentLeft, // layout
|
|
125
|
+
label = _param.label, leftHelper = _param.leftHelper, titleCaption = _param.titleCaption, contentLeft = _param.contentLeft, contentRight = _param.contentRight, firstTextfieldContentLeft = _param.firstTextfieldContentLeft, firstTextfieldContentRight = _param.firstTextfieldContentRight, secondTextfieldContentLeft = _param.secondTextfieldContentLeft, secondTextfieldContentRight = _param.secondTextfieldContentRight, firstTextfieldTextBefore = _param.firstTextfieldTextBefore, secondTextfieldTextBefore = _param.secondTextfieldTextBefore, firstTextfieldTextAfter = _param.firstTextfieldTextAfter, secondTextfieldTextAfter = _param.secondTextfieldTextAfter, _param_dividerVariant = _param.dividerVariant, dividerVariant = _param_dividerVariant === void 0 ? 'dash' : _param_dividerVariant, dividerIcon = _param.dividerIcon, autoComplete = _param.autoComplete, onChangeFirstValue = _param.onChangeFirstValue, onChangeSecondValue = _param.onChangeSecondValue, onSearchFirstValue = _param.onSearchFirstValue, onSearchSecondValue = _param.onSearchSecondValue, onFocusFirstTextfield = _param.onFocusFirstTextfield, onFocusSecondTextfield = _param.onFocusSecondTextfield, onBlurFirstTextfield = _param.onBlurFirstTextfield, onBlurSecondTextfield = _param.onBlurSecondTextfield, rest = _object_without_properties(_param, [
|
|
126
|
+
"className",
|
|
79
127
|
"firstValue",
|
|
80
128
|
"secondValue",
|
|
81
129
|
"firstValueError",
|
|
@@ -84,6 +132,31 @@ export var rangeRoot = function(Root) {
|
|
|
84
132
|
"secondValueSuccess",
|
|
85
133
|
"firstPlaceholder",
|
|
86
134
|
"secondPlaceholder",
|
|
135
|
+
"appearance",
|
|
136
|
+
"hasClearDivider",
|
|
137
|
+
"view",
|
|
138
|
+
"size",
|
|
139
|
+
"readOnly",
|
|
140
|
+
"disabled",
|
|
141
|
+
"required",
|
|
142
|
+
"requiredIndicatorPlacement",
|
|
143
|
+
"hasRequiredIndicator",
|
|
144
|
+
"hintTrigger",
|
|
145
|
+
"hintText",
|
|
146
|
+
"hintView",
|
|
147
|
+
"hintSize",
|
|
148
|
+
"hintTargetIcon",
|
|
149
|
+
"hintTargetPlacement",
|
|
150
|
+
"hintPlacement",
|
|
151
|
+
"hintHasArrow",
|
|
152
|
+
"hintOffset",
|
|
153
|
+
"hintWidth",
|
|
154
|
+
"hintContentLeft",
|
|
155
|
+
"label",
|
|
156
|
+
"leftHelper",
|
|
157
|
+
"titleCaption",
|
|
158
|
+
"contentLeft",
|
|
159
|
+
"contentRight",
|
|
87
160
|
"firstTextfieldContentLeft",
|
|
88
161
|
"firstTextfieldContentRight",
|
|
89
162
|
"secondTextfieldContentLeft",
|
|
@@ -92,9 +165,9 @@ export var rangeRoot = function(Root) {
|
|
|
92
165
|
"secondTextfieldTextBefore",
|
|
93
166
|
"firstTextfieldTextAfter",
|
|
94
167
|
"secondTextfieldTextAfter",
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
168
|
+
"dividerVariant",
|
|
169
|
+
"dividerIcon",
|
|
170
|
+
"autoComplete",
|
|
98
171
|
"onChangeFirstValue",
|
|
99
172
|
"onChangeSecondValue",
|
|
100
173
|
"onSearchFirstValue",
|
|
@@ -107,17 +180,50 @@ export var rangeRoot = function(Root) {
|
|
|
107
180
|
var rangeRef = useRef(null);
|
|
108
181
|
var firstTextFieldRef = useRef(null);
|
|
109
182
|
var secondTextFieldRef = useRef(null);
|
|
110
|
-
var
|
|
183
|
+
var hintRef = useRef(null);
|
|
184
|
+
var _useState = _sliced_to_array(useState(false), 2), isHintVisible = _useState[0], setIsHintVisible = _useState[1];
|
|
185
|
+
var noCaptionAndLabelClass = !label && !titleCaption ? classes.noCaptionAndLabel : undefined;
|
|
186
|
+
var clearClass = appearance === 'clear' ? classes.clear : undefined;
|
|
187
|
+
var clearDividerClass = hasClearDivider ? classes.clearDivider : undefined;
|
|
188
|
+
var clearOuterHintClass = clearClass && hintText && hintTargetPlacement === 'outer' ? classes.clearHasOuterHint : undefined;
|
|
111
189
|
var rangeErrorClass = firstValueError && secondValueError ? classes.rangeError : undefined;
|
|
112
190
|
var firstValueErrorClass = !rangeErrorClass && firstValueError ? classes.rangeValueError : undefined;
|
|
113
191
|
var secondValueErrorClass = !rangeErrorClass && secondValueError ? classes.rangeValueError : undefined;
|
|
114
192
|
var rangeSuccessClass = firstValueSuccess && secondValueSuccess ? classes.rangeSuccess : undefined;
|
|
115
193
|
var firstValueSuccessClass = !rangeSuccessClass && firstValueSuccess ? classes.rangeValueSuccess : undefined;
|
|
116
194
|
var secondValueSuccessClass = !rangeSuccessClass && secondValueSuccess ? classes.rangeValueSuccess : undefined;
|
|
195
|
+
var hintInnerRef = useRef(null);
|
|
196
|
+
var hintForkRef = useForkRef(hintRef, hintInnerRef);
|
|
117
197
|
var handleChangeFirstValue = getChangeHandler(onChangeFirstValue, disabled, readOnly);
|
|
118
198
|
var handleChangeSecondValue = getChangeHandler(onChangeSecondValue, disabled, readOnly);
|
|
119
199
|
var handleSearchFirstValue = getSearchHandler(onSearchFirstValue, disabled, readOnly);
|
|
120
200
|
var handleSearchSecondValue = getSearchHandler(onSearchSecondValue, disabled, readOnly);
|
|
201
|
+
var handleHintShow = function() {
|
|
202
|
+
if (disabled) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
setIsHintVisible(true);
|
|
206
|
+
};
|
|
207
|
+
var handleHintHide = function() {
|
|
208
|
+
return setIsHintVisible(false);
|
|
209
|
+
};
|
|
210
|
+
var handleHintClick = function(event) {
|
|
211
|
+
var _hintInnerRef_current;
|
|
212
|
+
if (!hintText || hintTrigger !== 'click' || disabled) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
event.stopPropagation();
|
|
216
|
+
var targetIsPopover = event.target === hintInnerRef.current;
|
|
217
|
+
var rootHasTarget = (_hintInnerRef_current = hintInnerRef.current) === null || _hintInnerRef_current === void 0 ? void 0 : _hintInnerRef_current.contains(event.target);
|
|
218
|
+
if (!targetIsPopover && !rootHasTarget) {
|
|
219
|
+
setIsHintVisible(true);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
useOutsideClick(function() {
|
|
223
|
+
setIsHintVisible(false);
|
|
224
|
+
}, [
|
|
225
|
+
hintRef
|
|
226
|
+
]);
|
|
121
227
|
useImperativeHandle(ref, function() {
|
|
122
228
|
return {
|
|
123
229
|
firstTextField: function() {
|
|
@@ -145,17 +251,40 @@ export var rangeRoot = function(Root) {
|
|
|
145
251
|
]);
|
|
146
252
|
return /*#__PURE__*/ React.createElement(Root, _object_spread({
|
|
147
253
|
ref: rangeRef,
|
|
254
|
+
className: cx(clearClass, noCaptionAndLabelClass, className),
|
|
148
255
|
view: view,
|
|
149
256
|
size: size,
|
|
150
257
|
disabled: disabled,
|
|
151
258
|
readOnly: !disabled && readOnly
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
259
|
+
}, hintText && {
|
|
260
|
+
hintView: hintView,
|
|
261
|
+
hintSize: hintSize
|
|
262
|
+
}, rest), /*#__PURE__*/ React.createElement(InformationWrapperUI, _object_spread({
|
|
263
|
+
className: cx(rangeErrorClass, firstValueErrorClass, secondValueErrorClass, rangeSuccessClass, firstValueSuccessClass, secondValueSuccessClass, clearOuterHintClass),
|
|
264
|
+
size: size,
|
|
265
|
+
label: label,
|
|
266
|
+
leftHelper: leftHelper,
|
|
267
|
+
titleCaption: titleCaption,
|
|
268
|
+
required: required,
|
|
269
|
+
requiredIndicatorPlacement: requiredIndicatorPlacement,
|
|
270
|
+
hasRequiredIndicator: hasRequiredIndicator,
|
|
271
|
+
disabled: disabled
|
|
272
|
+
}, hintText && hintTargetPlacement === 'outer' ? {
|
|
273
|
+
hintText: hintText,
|
|
274
|
+
hintView: hintView,
|
|
275
|
+
hintSize: hintSize,
|
|
276
|
+
hintTrigger: hintTrigger,
|
|
277
|
+
hintTargetIcon: hintTargetIcon,
|
|
278
|
+
hintPlacement: hintPlacement,
|
|
279
|
+
hintHasArrow: hintHasArrow,
|
|
280
|
+
hintOffset: hintOffset,
|
|
281
|
+
hintWidth: hintWidth,
|
|
282
|
+
hintContentLeft: hintContentLeft
|
|
283
|
+
} : {
|
|
284
|
+
hintText: undefined
|
|
285
|
+
}), /*#__PURE__*/ React.createElement(ContentWrapper, {
|
|
286
|
+
className: cx(clearClass, clearDividerClass, rangeErrorClass, rangeSuccessClass)
|
|
287
|
+
}, contentLeft && /*#__PURE__*/ React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/ React.createElement(StyledInput, {
|
|
159
288
|
ref: firstTextFieldRef,
|
|
160
289
|
className: cx(firstValueErrorClass, firstValueSuccessClass),
|
|
161
290
|
value: firstValue,
|
|
@@ -172,7 +301,8 @@ export var rangeRoot = function(Root) {
|
|
|
172
301
|
onBlur: onBlurFirstTextfield,
|
|
173
302
|
autoComplete: autoComplete,
|
|
174
303
|
"data-error": firstValueError,
|
|
175
|
-
"data-success": firstValueSuccess
|
|
304
|
+
"data-success": firstValueSuccess,
|
|
305
|
+
hasDivider: hasClearDivider
|
|
176
306
|
}), Divider, /*#__PURE__*/ React.createElement(StyledInput, {
|
|
177
307
|
ref: secondTextFieldRef,
|
|
178
308
|
className: cx(secondValueErrorClass, secondValueSuccessClass),
|
|
@@ -188,10 +318,25 @@ export var rangeRoot = function(Root) {
|
|
|
188
318
|
onSearch: handleSearchSecondValue,
|
|
189
319
|
onFocus: onFocusSecondTextfield,
|
|
190
320
|
onBlur: onBlurSecondTextfield,
|
|
191
|
-
autoComplete: autoComplete
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
321
|
+
autoComplete: autoComplete,
|
|
322
|
+
hasDivider: hasClearDivider
|
|
323
|
+
}), /*#__PURE__*/ React.createElement(StyledContentRightWrapper, null, !label && hintText && hintTargetPlacement === 'inner' && /*#__PURE__*/ React.createElement(HintComponent, {
|
|
324
|
+
ref: hintForkRef,
|
|
325
|
+
hintText: hintText,
|
|
326
|
+
hintTrigger: hintTrigger,
|
|
327
|
+
isHintVisible: isHintVisible,
|
|
328
|
+
hintTargetIcon: hintTargetIcon,
|
|
329
|
+
hintPlacement: hintPlacement,
|
|
330
|
+
hintHasArrow: hintHasArrow,
|
|
331
|
+
hintOffset: hintOffset,
|
|
332
|
+
hintWidth: hintWidth,
|
|
333
|
+
hintContentLeft: hintContentLeft,
|
|
334
|
+
size: size,
|
|
335
|
+
handleHintShow: handleHintShow,
|
|
336
|
+
handleHintHide: handleHintHide,
|
|
337
|
+
handleHintClick: handleHintClick,
|
|
338
|
+
withoutLabel: true
|
|
339
|
+
}), contentRight && /*#__PURE__*/ React.createElement(StyledContentRight, null, contentRight)))));
|
|
195
340
|
});
|
|
196
341
|
};
|
|
197
342
|
export var rangeConfig = {
|
|
@@ -206,6 +351,12 @@ export var rangeConfig = {
|
|
|
206
351
|
size: {
|
|
207
352
|
css: sizeCSS
|
|
208
353
|
},
|
|
354
|
+
hintView: {
|
|
355
|
+
css: hintViewCSS
|
|
356
|
+
},
|
|
357
|
+
hintSize: {
|
|
358
|
+
css: hintSizeCSS
|
|
359
|
+
},
|
|
209
360
|
disabled: {
|
|
210
361
|
css: disabledCSS,
|
|
211
362
|
attrs: true
|
|
@@ -217,6 +368,8 @@ export var rangeConfig = {
|
|
|
217
368
|
},
|
|
218
369
|
defaults: {
|
|
219
370
|
size: 'm',
|
|
220
|
-
view: 'default'
|
|
371
|
+
view: 'default',
|
|
372
|
+
hintView: 'default',
|
|
373
|
+
hintSize: 'm'
|
|
221
374
|
}
|
|
222
375
|
};
|