@bbl-digital/snorre 4.0.14 → 4.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/bundle.js +30 -20
  2. package/esm/core/BoxedTable/TableBody/index.js +10 -0
  3. package/esm/core/BoxedTable/TableBody/styles.js +16 -0
  4. package/esm/core/Input/Input.stories.js +15 -0
  5. package/esm/core/Input/index.js +1 -1
  6. package/esm/core/Input/styles.js +27 -17
  7. package/lib/core/BoxedTable/TableBody/index.d.ts +7 -0
  8. package/lib/core/BoxedTable/TableBody/index.d.ts.map +1 -0
  9. package/lib/core/BoxedTable/TableBody/index.js +10 -0
  10. package/lib/core/BoxedTable/TableBody/styles.d.ts +6 -0
  11. package/lib/core/BoxedTable/TableBody/styles.d.ts.map +1 -0
  12. package/lib/core/BoxedTable/TableBody/styles.js +16 -0
  13. package/lib/core/Input/Input.stories.d.ts +2 -0
  14. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  15. package/lib/core/Input/Input.stories.js +15 -0
  16. package/lib/core/Input/index.d.ts.map +1 -1
  17. package/lib/core/Input/index.js +1 -1
  18. package/lib/core/Input/styles.d.ts +1 -0
  19. package/lib/core/Input/styles.d.ts.map +1 -1
  20. package/lib/core/Input/styles.js +27 -17
  21. package/package.json +1 -1
  22. package/esm/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
  23. package/esm/core/CheckboxController/index.js +0 -22
  24. package/esm/core/Datepicker/yearMonthForm.js +0 -56
  25. package/esm/core/EditorOld/config.js +0 -69
  26. package/esm/core/EditorOld/index.js +0 -147
  27. package/esm/core/EditorOld/styles.js +0 -65
  28. package/esm/core/ImageCarousel/index.js +0 -70
  29. package/esm/core/ImageCarousel/styles.js +0 -58
  30. package/esm/enums/ModifierKey.js +0 -13
  31. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +0 -7
  32. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts.map +0 -1
  33. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
  34. package/lib/core/CheckboxController/index.d.ts +0 -1
  35. package/lib/core/CheckboxController/index.d.ts.map +0 -1
  36. package/lib/core/CheckboxController/index.js +0 -22
  37. package/lib/core/Datepicker/yearMonthForm.d.ts +0 -10
  38. package/lib/core/Datepicker/yearMonthForm.d.ts.map +0 -1
  39. package/lib/core/Datepicker/yearMonthForm.js +0 -56
  40. package/lib/core/EditorOld/config.d.ts +0 -56
  41. package/lib/core/EditorOld/config.d.ts.map +0 -1
  42. package/lib/core/EditorOld/config.js +0 -69
  43. package/lib/core/EditorOld/index.d.ts +0 -39
  44. package/lib/core/EditorOld/index.d.ts.map +0 -1
  45. package/lib/core/EditorOld/index.js +0 -147
  46. package/lib/core/EditorOld/styles.d.ts +0 -23
  47. package/lib/core/EditorOld/styles.d.ts.map +0 -1
  48. package/lib/core/EditorOld/styles.js +0 -65
  49. package/lib/core/ImageCarousel/index.d.ts +0 -11
  50. package/lib/core/ImageCarousel/index.d.ts.map +0 -1
  51. package/lib/core/ImageCarousel/index.js +0 -70
  52. package/lib/core/ImageCarousel/styles.d.ts +0 -26
  53. package/lib/core/ImageCarousel/styles.d.ts.map +0 -1
  54. package/lib/core/ImageCarousel/styles.js +0 -58
  55. package/lib/enums/ModifierKey.d.ts +0 -12
  56. package/lib/enums/ModifierKey.d.ts.map +0 -1
  57. package/lib/enums/ModifierKey.js +0 -13
@@ -0,0 +1,10 @@
1
+ import { BodyWrapper } from './styles';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const TableBody = ({
4
+ children
5
+ }) => {
6
+ return /*#__PURE__*/_jsx(BodyWrapper, {
7
+ children: children
8
+ });
9
+ };
10
+ export default TableBody;
@@ -0,0 +1,16 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ export const BodyWrapper = /*#__PURE__*/_styled("tbody", process.env.NODE_ENV === "production" ? {
4
+ target: "e1u8g1t20"
5
+ } : {
6
+ target: "e1u8g1t20",
7
+ label: "BodyWrapper"
8
+ })(process.env.NODE_ENV === "production" ? {
9
+ name: "ixi98c",
10
+ styles: "display:flex;flex-direction:column;grid-row-gap:1em"
11
+ } : {
12
+ name: "ixi98c",
13
+ styles: "display:flex;flex-direction:column;grid-row-gap:1em",
14
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0JveGVkVGFibGUvVGFibGVCb2R5L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQm94ZWRUYWJsZS9UYWJsZUJvZHkvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBCb2R5V3JhcHBlciA9IHN0eWxlZC50Ym9keWBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZ3JpZC1yb3ctZ2FwOiAxZW07XG5gXG4iXX0= */",
15
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16
+ });
@@ -128,6 +128,21 @@ export const CardInput = {
128
128
  },
129
129
  name: 'CardInput'
130
130
  };
131
+ export const Invalid = {
132
+ args: {
133
+ label: 'Invalid',
134
+ invalid: true,
135
+ invalidMessage: 'error'
136
+ },
137
+ name: 'Invalid'
138
+ };
139
+ export const InvalidNoLabel = {
140
+ args: {
141
+ invalid: true,
142
+ invalidMessage: 'error'
143
+ },
144
+ name: 'Invalid no label'
145
+ };
131
146
  export const Controls = {
132
147
  args: {
133
148
  label: 'With info',
@@ -91,7 +91,7 @@ const Input = /*#__PURE__*/React.forwardRef(({
91
91
  }), type === 'search' && _jsx(IconSearch, {}), props.invalidMessage && _jsx(IconErrorOutline, {
92
92
  size: "16px"
93
93
  }), props.invalidMessage && _jsx("span", {
94
- css: styles.errorMessage,
94
+ css: (styles.errorMessage, !props?.label && styles.errorMessageNoLabel),
95
95
  children: props.invalidMessage
96
96
  })]
97
97
  }), info && _jsx("span", {