@pushwoosh/dumb-components 1.1.207 → 1.1.209

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.
@@ -3,4 +3,4 @@ import { Color } from '@pushwoosh/kit-constants';
3
3
  export const InputStyled = styled.input.withConfig({
4
4
  displayName: "InputStyled",
5
5
  componentId: "sc-17gtn04-0"
6
- })(["color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
6
+ })(["color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";-webkit-text-fill-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
@@ -0,0 +1 @@
1
+ export { Divider } from './styles';
@@ -0,0 +1 @@
1
+ export { Divider } from './styles';
@@ -0,0 +1,2 @@
1
+ /** Thin horizontal separator line; spacing around it belongs to the layout, not to the divider. */
2
+ export declare const Divider: import("styled-components").StyledComponent<"hr", any, {}, never>;
@@ -0,0 +1,7 @@
1
+ import styled from 'styled-components';
2
+ import { Color } from '@pushwoosh/kit-constants';
3
+ /** Thin horizontal separator line; spacing around it belongs to the layout, not to the divider. */
4
+ export const Divider = styled.hr.withConfig({
5
+ displayName: "Divider",
6
+ componentId: "sc-16w0xah-0"
7
+ })(["width:100%;height:1px;margin:0;padding:0;border:none;background-color:", ";"], Color.DIVIDER);
@@ -5,7 +5,7 @@ export const InputStyled = styled.input.attrs({
5
5
  }).withConfig({
6
6
  displayName: "InputStyled",
7
7
  componentId: "sc-vq8xnz-0"
8
- })(["width:100%;color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
8
+ })(["width:100%;color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";-webkit-text-fill-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
9
9
  export const Hint = styled.div.withConfig({
10
10
  displayName: "Hint",
11
11
  componentId: "sc-vq8xnz-1"
package/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { Button, GhostButton, RemoveButton } from './Button';
5
5
  export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
7
  export { CrashScreen } from './CrashScreen';
8
+ export { Divider } from './Divider';
8
9
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs, } from './Drawer';
9
10
  export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getSortedTimezones, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, type CalendarSuperFormProps, type DateStruct, type RangeValue, type TimezoneOption, } from './Calendar';
10
11
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField, } from './DateTimePicker';
package/index.js CHANGED
@@ -5,6 +5,7 @@ export { Button, GhostButton, RemoveButton } from './Button';
5
5
  export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
7
  export { CrashScreen } from './CrashScreen';
8
+ export { Divider } from './Divider';
8
9
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs } from './Drawer';
9
10
  export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getSortedTimezones, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct } from './Calendar';
10
11
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField } from './DateTimePicker';
package/native/Input.js CHANGED
@@ -4,6 +4,6 @@ import { Color, FontSize, LineHeight, ShapeRadius, UnitSize } from '@pushwoosh/k
4
4
  export const NativeInput = styled.input.withConfig({
5
5
  displayName: "NativeInput",
6
6
  componentId: "sc-oqkcxd-0"
7
- })(["height:", ";padding:0 calc(12px - 1px);border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}&::placeholder{color:", ";}"], UnitSize.FIELD_HEIGHT, ({
7
+ })(["height:", ";padding:0 calc(12px - 1px);border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}&::placeholder{color:", ";-webkit-text-fill-color:", ";}"], UnitSize.FIELD_HEIGHT, ({
8
8
  $isErrored
9
- }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM);
9
+ }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM, Color.PHANTOM);
@@ -4,7 +4,7 @@ import { Color, FontSize, LineHeight, ShapeRadius } from '@pushwoosh/kit-constan
4
4
  export const NativeTextarea = styled.textarea.withConfig({
5
5
  displayName: "NativeTextarea",
6
6
  componentId: "sc-1xe83i4-0"
7
- })(["width:", ";min-width:", ";max-width:", ";min-height:56px;padding:8px 12px;border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}&::placeholder{color:", ";}"], ({
7
+ })(["width:", ";min-width:", ";max-width:", ";min-height:56px;padding:8px 12px;border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}&::placeholder{color:", ";-webkit-text-fill-color:", ";}"], ({
8
8
  $width
9
9
  }) => $width || '100%', ({
10
10
  $width
@@ -12,4 +12,4 @@ export const NativeTextarea = styled.textarea.withConfig({
12
12
  $width
13
13
  }) => $width || '100%', ({
14
14
  $isErrored
15
- }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM);
15
+ }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM, Color.PHANTOM);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.207",
3
+ "version": "1.1.209",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",