@3t-transform/threeteeui 0.0.6 → 0.0.8

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 (121) hide show
  1. package/dist/cjs/{index-8a7479e4.js → index-8a4cb9bc.js} +256 -407
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +28 -0
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +28 -0
  5. package/dist/cjs/tttx-form.cjs.entry.js +58 -0
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1845 -5
  7. package/dist/cjs/tttx-input.cjs.entry.js +44 -0
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +26 -0
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +23 -0
  10. package/dist/cjs/tttx.cjs.js +7 -3
  11. package/dist/collection/collection-manifest.json +9 -5
  12. package/dist/collection/components/atoms/tttx-button/tttx-button.css +61 -0
  13. package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -0
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +27 -0
  15. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +101 -0
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +114 -0
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +47 -0
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +48 -0
  19. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -0
  20. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +15 -0
  21. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +30 -0
  22. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -0
  23. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -0
  24. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +135 -0
  25. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -0
  26. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +13 -0
  27. package/dist/collection/components/molecules/tttx-form/tttx-form.js +109 -0
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +33 -0
  29. package/dist/collection/components/molecules/tttx-input/tttx-input.css +149 -0
  30. package/dist/collection/components/molecules/tttx-input/tttx-input.js +259 -0
  31. package/dist/collection/components/molecules/tttx-input/tttx-input.stories.js +106 -0
  32. package/dist/collection/components/palette.stories.js +88 -0
  33. package/dist/collection/icons.js +2838 -0
  34. package/dist/components/index.d.ts +16 -3
  35. package/dist/components/index.js +7 -3
  36. package/dist/components/{tttx-worksheet.d.ts → tttx-button.d.ts} +4 -4
  37. package/dist/components/tttx-button.js +45 -0
  38. package/dist/components/tttx-checkbox.d.ts +11 -0
  39. package/dist/components/tttx-checkbox.js +46 -0
  40. package/dist/components/{tttx-page.d.ts → tttx-form.d.ts} +4 -4
  41. package/dist/components/tttx-form.js +75 -0
  42. package/dist/components/tttx-icon.js +1 -32
  43. package/dist/components/tttx-icon2.js +1875 -0
  44. package/dist/components/tttx-input.d.ts +11 -0
  45. package/dist/components/tttx-input.js +77 -0
  46. package/dist/components/tttx-loading-spinner.d.ts +11 -0
  47. package/dist/components/tttx-loading-spinner.js +43 -0
  48. package/dist/components/tttx-popover-content.d.ts +11 -0
  49. package/dist/components/tttx-popover-content.js +42 -0
  50. package/dist/esm/{index-854ff56f.js → index-9654537d.js} +254 -408
  51. package/dist/esm/loader.js +4 -3
  52. package/dist/esm/polyfills/css-shim.js +1 -1
  53. package/dist/esm/tttx-button.entry.js +24 -0
  54. package/dist/esm/tttx-checkbox.entry.js +24 -0
  55. package/dist/esm/tttx-form.entry.js +54 -0
  56. package/dist/esm/tttx-icon.entry.js +1845 -5
  57. package/dist/esm/tttx-input.entry.js +40 -0
  58. package/dist/esm/tttx-loading-spinner.entry.js +22 -0
  59. package/dist/esm/tttx-popover-content.entry.js +19 -0
  60. package/dist/esm/tttx.js +4 -3
  61. package/dist/tttx/p-1884203f.entry.js +1 -0
  62. package/dist/tttx/p-317b13d3.entry.js +1 -0
  63. package/dist/tttx/p-3cb692d6.entry.js +1 -0
  64. package/dist/tttx/p-3cd7ad04.entry.js +1 -0
  65. package/dist/tttx/p-674e2f18.entry.js +1 -0
  66. package/dist/tttx/p-a23389f1.entry.js +1 -0
  67. package/dist/tttx/p-b6cc2780.js +2 -0
  68. package/dist/tttx/p-f30a0e84.entry.js +1 -0
  69. package/dist/tttx/tttx.esm.js +1 -1
  70. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -0
  71. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -0
  72. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -0
  73. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -0
  74. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -0
  75. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +5 -0
  76. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -0
  77. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -0
  78. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -0
  79. package/dist/types/{docs/template.stories.d.ts → components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts} +1 -0
  80. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +11 -0
  81. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -0
  82. package/dist/types/components/molecules/tttx-input/tttx-input.d.ts +20 -0
  83. package/dist/types/components/molecules/tttx-input/tttx-input.stories.d.ts +60 -0
  84. package/dist/types/components/palette.stories.d.ts +6 -0
  85. package/dist/types/components.d.ts +142 -38
  86. package/dist/types/icons.d.ts +2 -0
  87. package/dist/types/stencil-public-runtime.d.ts +59 -3
  88. package/loader/index.d.ts +9 -0
  89. package/package.json +33 -25
  90. package/readme.md +14 -32
  91. package/dist/cjs/toolbar-656be6e6.js +0 -34259
  92. package/dist/cjs/tttx-page.cjs.entry.js +0 -927
  93. package/dist/cjs/tttx-worksheet.cjs.entry.js +0 -47
  94. package/dist/collection/components/components/tttx-icon/tttx-icon.css +0 -89
  95. package/dist/collection/components/components/tttx-icon/tttx-icon.js +0 -59
  96. package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +0 -40
  97. package/dist/collection/components/patterns/tttx-page/tttx-page.css +0 -162
  98. package/dist/collection/components/patterns/tttx-page/tttx-page.js +0 -213
  99. package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +0 -80
  100. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +0 -134
  101. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +0 -70
  102. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +0 -44
  103. package/dist/collection/docs/template.stories.js +0 -10
  104. package/dist/components/tttx-page.js +0 -953
  105. package/dist/components/tttx-worksheet.js +0 -6
  106. package/dist/components/tttx-worksheet2.js +0 -34288
  107. package/dist/esm/toolbar-cede4385.js +0 -34231
  108. package/dist/esm/tttx-page.entry.js +0 -923
  109. package/dist/esm/tttx-worksheet.entry.js +0 -43
  110. package/dist/tttx/p-4b57de2e.entry.js +0 -1
  111. package/dist/tttx/p-61f78304.entry.js +0 -1
  112. package/dist/tttx/p-7244abd4.entry.js +0 -1
  113. package/dist/tttx/p-d038fe18.js +0 -1
  114. package/dist/tttx/p-ddfeb0ba.js +0 -2
  115. package/dist/tttx/tttx.css +0 -1
  116. package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +0 -5
  117. package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +0 -24
  118. package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +0 -21
  119. package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +0 -48
  120. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +0 -9
  121. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +0 -23
@@ -1,134 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
2
- * {
3
- box-sizing: border-box;
4
- }
5
-
6
- .flex-start {
7
- justify-content: start;
8
- }
9
-
10
- .flex-end {
11
- justify-content: end;
12
- }
13
-
14
- .flex-centre {
15
- justify-content: center;
16
- }
17
-
18
- [class^=col-] {
19
- display: flex;
20
- /* we need to overright bootstrap to get the buttering we want */
21
- padding-left: 8px !important;
22
- padding-right: 8px !important;
23
- }
24
-
25
- h1, h2, h3, h4, h5, h6, p, label, small {
26
- margin: 0;
27
- padding: 0;
28
- }
29
-
30
- h1, h2, h3, h4, h5, h6, p, label {
31
- display: block;
32
- }
33
-
34
- * {
35
- font-family: "Roboto", sans-serif;
36
- }
37
-
38
- html,
39
- body {
40
- font-weight: normal;
41
- font-size: 16px;
42
- }
43
-
44
- h1 {
45
- font-weight: 700;
46
- font-size: 24px;
47
- }
48
-
49
- h2 {
50
- font-weight: 700;
51
- font-size: 20px;
52
- }
53
-
54
- h3 {
55
- font-weight: 700;
56
- font-size: 18px;
57
- }
58
-
59
- h4 {
60
- font-weight: normal;
61
- font-size: 14px;
62
- text-transform: uppercase;
63
- }
64
-
65
- button {
66
- font-weight: 500;
67
- font-size: 14px;
68
- text-transform: uppercase;
69
- }
70
-
71
- small {
72
- font-weight: normal;
73
- font-size: 14px;
74
- }
75
-
76
- label {
77
- font-weight: 700;
78
- font-size: 16px;
79
- }
80
-
81
- :host {
82
- display: block;
83
- }
84
-
85
- .worksheet__container,
86
- .worksheet__container--large,
87
- .worksheet__container--medium,
88
- .worksheet__container--small {
89
- position: absolute;
90
- top: 104px;
91
- bottom: 8px;
92
- left: 0px;
93
- right: 0px;
94
- overflow: auto;
95
- background-color: #ffffff;
96
- clear: both;
97
- }
98
-
99
- .worksheet__container,
100
- .worksheet__container--medium,
101
- .worksheet__container--small,
102
- .worksheet__footer--medium,
103
- .worksheet__footer--small {
104
- margin: 0px auto;
105
- }
106
-
107
- .worksheet__container--large {
108
- margin: 0px 16px;
109
- }
110
-
111
- .worksheet__container--medium {
112
- width: 900px;
113
- }
114
-
115
- .worksheet__container--small {
116
- width: 600px;
117
- }
118
-
119
- .worksheet__footer--medium.dx-toolbar,
120
- .worksheet__footer--small.dx-toolbar {
121
- position: fixed;
122
- bottom: 0px;
123
- left: 0px;
124
- right: 0px;
125
- padding: 0 8px;
126
- }
127
-
128
- .worksheet__footer--medium.dx-toolbar {
129
- width: 900px;
130
- }
131
-
132
- .worksheet__footer--small.dx-toolbar {
133
- width: 600px;
134
- }
@@ -1,70 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- import dxToolbar from 'devextreme/esm/ui/toolbar';
3
- import dxButton from 'devextreme/esm/ui/button';
4
- export class TttxWorksheet {
5
- constructor() {
6
- this.pageSize = 'large';
7
- }
8
- componentDidLoad() {
9
- this.footer();
10
- }
11
- pageSizeIsNumeric() {
12
- return /^\d+$/.test(this.pageSize);
13
- }
14
- pageSizeClasses(baseClassName) {
15
- return this.pageSizeIsNumeric() ? baseClassName : `${baseClassName}--${this.pageSize}`;
16
- }
17
- footer() {
18
- if (!['medium', 'small'].includes(this.pageSize)) {
19
- return;
20
- }
21
- new dxToolbar(this.footerBar, {
22
- items: [
23
- {
24
- location: 'after',
25
- widget: dxButton,
26
- options: {
27
- text: 'save'
28
- }
29
- }
30
- ]
31
- });
32
- }
33
- render() {
34
- const customPageWidth = this.pageSizeIsNumeric() ? { width: `${this.pageSize}px` } : {};
35
- return (h(Host, null, h("div", { class: this.pageSizeClasses('worksheet__container'), style: Object.assign({}, customPageWidth) }, h("slot", null), h("div", { class: `worksheet__footer--${this.pageSize}`, ref: el => (this.footerBar = el) }))));
36
- }
37
- static get is() { return "tttx-worksheet"; }
38
- static get originalStyleUrls() {
39
- return {
40
- "$": ["tttx-worksheet.scss"]
41
- };
42
- }
43
- static get styleUrls() {
44
- return {
45
- "$": ["tttx-worksheet.css"]
46
- };
47
- }
48
- static get properties() {
49
- return {
50
- "pageSize": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "'large' | 'medium' | 'small' | string",
55
- "resolved": "string",
56
- "references": {}
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "attribute": "page-size",
65
- "reflect": false,
66
- "defaultValue": "'large'"
67
- }
68
- };
69
- }
70
- }
@@ -1,44 +0,0 @@
1
- export default {
2
- title: 'Patterns/Worksheet',
3
- argTypes: {
4
- pageSize: {
5
- options: [
6
- 'large',
7
- 'medium',
8
- 'small',
9
- '800'
10
- ],
11
- control: {
12
- type: 'select'
13
- },
14
- description: 'A control on the width of the worksheet. Accepts three preset sizes (large, medium and small), as well as a number of pixels. Medium and small worksheets render a footer'
15
- }
16
- },
17
- parameters: {
18
- backgrounds: {
19
- default: 'dark'
20
- },
21
- docs: {
22
- transformSource: source => {
23
- var _a;
24
- const [, output] = (_a = source.match(/<span decorator-start \/>([\s\S]*?)<span decorator-end \/>/)) !== null && _a !== void 0 ? _a : [];
25
- return output;
26
- }
27
- }
28
- },
29
- decorators: [
30
- (Story) => `
31
- <div style="height: 500px; transform: translateZ(0)">
32
- <span decorator-start />
33
- ${Story()}
34
- <span decorator-end />
35
- </div>
36
- `
37
- ]
38
- };
39
- const Template = (args) => `
40
- <tttx-worksheet
41
- ${args.pageSize ? `page-size=${args.pageSize}` : ''}>
42
- </tttx-worksheet>
43
- `;
44
- export const Default = Template.bind({});
@@ -1,10 +0,0 @@
1
- export default {
2
- title: 'Getting Started/Designer',
3
- };
4
- const Template = () => `
5
- <tttx-typography>
6
- <h1>Getting Started</h1>
7
- <p>....</p>
8
- </tttx-typography>
9
- `;
10
- export const Default = Template.bind({});