@pingux/astro 1.3.0 → 1.3.1

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -1
  3. package/lib/cjs/components/Input/Input.js +3 -11
  4. package/lib/cjs/components/Input/Input.test.js +14 -2
  5. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +10 -2
  6. package/lib/cjs/components/NumberField/NumberField.js +30 -10
  7. package/lib/cjs/components/NumberField/NumberField.test.js +7 -0
  8. package/lib/cjs/components/PageHeader/PageHeader.js +3 -0
  9. package/lib/cjs/components/PageHeader/PageHeader.stories.js +6 -1
  10. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +9 -5
  11. package/lib/cjs/components/SelectField/SelectField.stories.js +3 -55
  12. package/lib/cjs/components/Tabs/Tabs.stories.js +1 -15
  13. package/lib/cjs/hooks/useField/useField.js +2 -2
  14. package/lib/cjs/styles/forms/checkbox.js +0 -1
  15. package/lib/cjs/styles/forms/input.js +1 -1
  16. package/lib/cjs/styles/forms/label.js +3 -0
  17. package/lib/cjs/styles/forms/radio.js +1 -1
  18. package/lib/cjs/styles/forms/switch.js +3 -1
  19. package/lib/cjs/styles/variants/boxes.js +4 -1
  20. package/lib/components/CheckboxField/CheckboxField.js +4 -1
  21. package/lib/components/Input/Input.js +2 -10
  22. package/lib/components/Input/Input.test.js +11 -2
  23. package/lib/components/MultivaluesField/MultivaluesField.js +9 -2
  24. package/lib/components/NumberField/NumberField.js +32 -12
  25. package/lib/components/NumberField/NumberField.test.js +5 -0
  26. package/lib/components/PageHeader/PageHeader.js +2 -0
  27. package/lib/components/PageHeader/PageHeader.stories.js +5 -1
  28. package/lib/components/RadioGroupField/RadioGroupField.js +9 -5
  29. package/lib/components/SelectField/SelectField.stories.js +2 -50
  30. package/lib/components/Tabs/Tabs.stories.js +0 -11
  31. package/lib/hooks/useField/useField.js +2 -2
  32. package/lib/styles/forms/checkbox.js +0 -1
  33. package/lib/styles/forms/input.js +1 -1
  34. package/lib/styles/forms/label.js +3 -0
  35. package/lib/styles/forms/radio.js +1 -1
  36. package/lib/styles/forms/switch.js +3 -1
  37. package/lib/styles/variants/boxes.js +4 -1
  38. package/package.json +1 -1
  39. package/lib/cjs/layouts/ListLayout.stories.js +0 -895
  40. package/lib/cjs/layouts/SchemaFormLayout.stories.js +0 -139
  41. package/lib/layouts/ListLayout.stories.js +0 -866
  42. package/lib/layouts/SchemaFormLayout.stories.js +0 -107
@@ -1,107 +0,0 @@
1
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
- import React from 'react';
3
- import Earth from 'mdi-react/EarthIcon';
4
- import Cog from 'mdi-react/CogOutlineIcon';
5
- import Button from '../components/Button/Button';
6
- import Box from '../components/Box/Box';
7
- import Icon from '../components/Icon/Icon';
8
- import Text from '../components/Text/Text';
9
- import Separator from '../components/Separator/Separator';
10
- import TextField from '../components/TextField/TextField';
11
- import TextAreaField from '../components/TextAreaField/TextAreaField';
12
- import RadioGroupField from '../components/RadioGroupField/RadioGroupField';
13
- import RadioField from '../components/RadioField/RadioField';
14
- import Tabs from '../components/Tabs/Tabs';
15
- import Tab from '../components/Tab/Tab';
16
- import { jsx as ___EmotionJSX } from "@emotion/react";
17
- export default {
18
- title: 'Layouts/SchemaForms'
19
- };
20
- export var Default = function Default() {
21
- var _React$useState = React.useState(true),
22
- _React$useState2 = _slicedToArray(_React$useState, 2),
23
- visible = _React$useState2[0],
24
- setVisible = _React$useState2[1];
25
-
26
- return ___EmotionJSX(Box, {
27
- bg: "accent.99"
28
- }, ___EmotionJSX(Separator, {
29
- margin: "0"
30
- }), ___EmotionJSX(Box, {
31
- isRow: true,
32
- p: "sm"
33
- }, ___EmotionJSX(Box, {
34
- isRow: true,
35
- mr: "auto"
36
- }, ___EmotionJSX(Box, {
37
- mr: "sm"
38
- }, ___EmotionJSX(Text, {
39
- variant: "label"
40
- }, "Form Builder"), ___EmotionJSX(Text, {
41
- variant: "title"
42
- }, "Standard Registration")), ___EmotionJSX(Button, {
43
- variant: "inline",
44
- alignContent: "center"
45
- }, "Preview")), ___EmotionJSX(Box, {
46
- isRow: true,
47
- alignItem: "center"
48
- }, ___EmotionJSX(Text, {
49
- variant: "base",
50
- mr: "lg",
51
- color: "active",
52
- alignSelf: "center"
53
- }, "Cancel"), ___EmotionJSX(Button, {
54
- bg: "active",
55
- color: "white"
56
- }, "Save and Close"))), ___EmotionJSX(Separator, {
57
- margin: "0"
58
- }), ___EmotionJSX(Box, {
59
- isRow: true,
60
- bg: "white"
61
- }, ___EmotionJSX(Box, {
62
- flexGrow: 1,
63
- p: "md"
64
- }, ___EmotionJSX(Box, {
65
- onClick: function onClick() {
66
- return !visible ? setVisible(!visible) : '';
67
- }
68
- }, ___EmotionJSX(Tabs, {
69
- tabListProps: {
70
- justifyContent: 'center'
71
- }
72
- }, ___EmotionJSX(Tab, {
73
- key: "Tab 1",
74
- title: "Tab 1",
75
- icon: ___EmotionJSX(Icon, {
76
- icon: Earth,
77
- size: 20,
78
- color: "active",
79
- mb: 10
80
- })
81
- }), ___EmotionJSX(Tab, {
82
- key: "Tab 2",
83
- title: "Tab 2",
84
- icon: ___EmotionJSX(Icon, {
85
- icon: Cog,
86
- size: 20,
87
- color: "active",
88
- mb: 10
89
- })
90
- })), ___EmotionJSX(TextField, {
91
- mt: "lg",
92
- mb: "lg",
93
- label: "Form Name"
94
- }), ___EmotionJSX(TextAreaField, {
95
- mb: "lg",
96
- label: "Description"
97
- }), ___EmotionJSX(RadioGroupField, {
98
- label: "Required Fields",
99
- variant: "radioGroupBasic"
100
- }, ___EmotionJSX(RadioField, {
101
- value: "A",
102
- label: "Option A"
103
- }), ___EmotionJSX(RadioField, {
104
- value: "B",
105
- label: "Option B"
106
- }))))));
107
- };