@operato/input 8.0.0-alpha.4 → 8.0.0-alpha.41
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/CHANGELOG.md +107 -0
- package/dist/src/ox-input-color-stops.d.ts +1 -1
- package/dist/src/ox-input-color-stops.js +2 -2
- package/dist/src/ox-input-color-stops.js.map +1 -1
- package/dist/src/ox-input-direction.d.ts +1 -0
- package/dist/src/ox-input-direction.js +37 -4
- package/dist/src/ox-input-direction.js.map +1 -1
- package/dist/src/ox-input-signature.d.ts +4 -2
- package/dist/src/ox-input-signature.js +34 -14
- package/dist/src/ox-input-signature.js.map +1 -1
- package/dist/src/ox-select-floor.d.ts +35 -0
- package/dist/src/ox-select-floor.js +238 -0
- package/dist/src/ox-select-floor.js.map +1 -0
- package/dist/stories/image-for-select-floor.d.ts +1 -0
- package/dist/stories/image-for-select-floor.js +2 -0
- package/dist/stories/image-for-select-floor.js.map +1 -0
- package/dist/stories/ox-input-direction.stories.js +11 -0
- package/dist/stories/ox-input-direction.stories.js.map +1 -1
- package/dist/stories/ox-select-floor.stories.d.ts +45 -0
- package/dist/stories/ox-select-floor.stories.js +166 -0
- package/dist/stories/ox-select-floor.stories.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -15
- package/src/ox-input-color-stops.ts +2 -2
- package/src/ox-input-direction.ts +31 -4
- package/src/ox-input-signature.ts +45 -17
- package/src/ox-select-floor.ts +246 -0
- package/stories/image-for-select-floor.ts +2 -0
- package/stories/ox-input-direction.stories.ts +11 -0
- package/stories/ox-select-floor.stories.ts +197 -0
- package/themes/calendar-theme.css +3 -1
- package/assets/images/icon-editor-gradient-direction.png +0 -0
- package/assets/images/icon-properties-label.png +0 -0
- package/assets/images/icon-properties-line-type.png +0 -0
- package/assets/images/icon-properties-table.png +0 -0
- package/dist/src/ox-zoomable-image.d.ts +0 -17
- package/dist/src/ox-zoomable-image.js +0 -80
- package/dist/src/ox-zoomable-image.js.map +0 -1
- package/src/ox-zoomable-image.ts +0 -75
@@ -55,6 +55,17 @@ const Template = ({ name = 'options', value, disabled }) => html `
|
|
55
55
|
?disabled=${disabled}
|
56
56
|
>
|
57
57
|
</ox-input-direction>
|
58
|
+
<br />
|
59
|
+
<ox-input-direction
|
60
|
+
@change=${(e) => {
|
61
|
+
console.log(e.target.value);
|
62
|
+
}}
|
63
|
+
name=${name}
|
64
|
+
.value=${value}
|
65
|
+
?disabled=${disabled}
|
66
|
+
inbound
|
67
|
+
>
|
68
|
+
</ox-input-direction>
|
58
69
|
</div>
|
59
70
|
`;
|
60
71
|
export const Regular = Template.bind({});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-direction.stories.js","sourceRoot":"","sources":["../../stories/ox-input-direction.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBrF,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ
|
1
|
+
{"version":3,"file":"ox-input-direction.stories.js","sourceRoot":"","sources":["../../stories/ox-input-direction.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBrF,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ;;;;;gBAKV,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ;;;;;CAKzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CACV,CAAA","sourcesContent":["import '../src/ox-input-direction.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-direction',\n component: 'ox-input-direction',\n argTypes: {\n value: { control: 'object' },\n name: { control: 'text' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object | string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'options', value, disabled }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container\">\n <ox-input-direction\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n ?disabled=${disabled}\n >\n </ox-input-direction>\n <br />\n <ox-input-direction\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n ?disabled=${disabled}\n inbound\n >\n </ox-input-direction>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'options',\n value: ''\n}\n"]}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import '../src/ox-select-floor.js';
|
2
|
+
import { TemplateResult } from 'lit';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: string;
|
6
|
+
argTypes: {
|
7
|
+
disabled: {
|
8
|
+
control: string;
|
9
|
+
};
|
10
|
+
value: {
|
11
|
+
control: string;
|
12
|
+
};
|
13
|
+
bottomLimit: {
|
14
|
+
control: string;
|
15
|
+
};
|
16
|
+
perspective: {
|
17
|
+
control: string;
|
18
|
+
};
|
19
|
+
rotateX: {
|
20
|
+
control: string;
|
21
|
+
};
|
22
|
+
rotateXForActive: {
|
23
|
+
control: string;
|
24
|
+
};
|
25
|
+
interval: {
|
26
|
+
control: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
export default _default;
|
31
|
+
interface Story<T> {
|
32
|
+
(args: T): TemplateResult;
|
33
|
+
args?: Partial<T>;
|
34
|
+
argTypes?: Record<string, unknown>;
|
35
|
+
}
|
36
|
+
interface ArgTypes {
|
37
|
+
value?: string;
|
38
|
+
bottomLimit?: number;
|
39
|
+
perspective?: number;
|
40
|
+
rotateX?: number;
|
41
|
+
rotateXForActive?: number;
|
42
|
+
disabled?: boolean;
|
43
|
+
interval?: number;
|
44
|
+
}
|
45
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,166 @@
|
|
1
|
+
import '../src/ox-select-floor.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles';
|
4
|
+
import { IMAGE } from './image-for-select-floor.js';
|
5
|
+
export default {
|
6
|
+
title: 'ox-select-floor',
|
7
|
+
component: 'ox-select-floor',
|
8
|
+
argTypes: {
|
9
|
+
disabled: { control: 'boolean' },
|
10
|
+
value: { control: 'text' },
|
11
|
+
bottomLimit: { control: 'number' },
|
12
|
+
perspective: { control: 'number' },
|
13
|
+
rotateX: { control: 'number' },
|
14
|
+
rotateXForActive: { control: 'number' },
|
15
|
+
interval: { control: 'number' }
|
16
|
+
}
|
17
|
+
};
|
18
|
+
const cards = new Array(10).fill({}).map((_, index) => {
|
19
|
+
return {
|
20
|
+
image: IMAGE,
|
21
|
+
name: index + 1 + '층'
|
22
|
+
};
|
23
|
+
});
|
24
|
+
const Template = ({ value, disabled, bottomLimit = 70, perspective = 1200, rotateX = 60, rotateXForActive = 40, interval = 0 }) => html `
|
25
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
26
|
+
|
27
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
28
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
29
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
30
|
+
|
31
|
+
<link
|
32
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
33
|
+
rel="stylesheet"
|
34
|
+
/>
|
35
|
+
<link
|
36
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
37
|
+
rel="stylesheet"
|
38
|
+
/>
|
39
|
+
<link
|
40
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
41
|
+
rel="stylesheet"
|
42
|
+
/>
|
43
|
+
|
44
|
+
<style>
|
45
|
+
${MDTypeScaleStyles.cssText}
|
46
|
+
</style>
|
47
|
+
|
48
|
+
<style>
|
49
|
+
html,
|
50
|
+
body {
|
51
|
+
margin: 0;
|
52
|
+
padding: 0;
|
53
|
+
overflow: hidden;
|
54
|
+
|
55
|
+
overscroll-behavior-y: none;
|
56
|
+
|
57
|
+
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
58
|
+
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
59
|
+
line-height: 1.5;
|
60
|
+
-webkit-font-smoothing: antialiased;
|
61
|
+
|
62
|
+
accent-color: var(--md-sys-color-primary);
|
63
|
+
background-color: var(--md-sys-color-background);
|
64
|
+
}
|
65
|
+
|
66
|
+
.container {
|
67
|
+
height: 1000px;
|
68
|
+
text-align: center;
|
69
|
+
padding: 20px;
|
70
|
+
|
71
|
+
background-color: var(--md-sys-color-primary-container);
|
72
|
+
color: var(--md-sys-color-on-primary-container);
|
73
|
+
}
|
74
|
+
|
75
|
+
div[status] {
|
76
|
+
display: flex;
|
77
|
+
position: absolute;
|
78
|
+
right: 0px;
|
79
|
+
bottom: 0px;
|
80
|
+
align-items: center;
|
81
|
+
right: 3%;
|
82
|
+
}
|
83
|
+
|
84
|
+
div[status] > div[content] {
|
85
|
+
display: flex;
|
86
|
+
background-color: #4e5055;
|
87
|
+
color: #fff;
|
88
|
+
padding: 5px 7px;
|
89
|
+
border-radius: 7px;
|
90
|
+
gap: 10px;
|
91
|
+
font-size: 14px;
|
92
|
+
}
|
93
|
+
|
94
|
+
div[status] span {
|
95
|
+
display: flex;
|
96
|
+
align-items: center;
|
97
|
+
width: 48px;
|
98
|
+
}
|
99
|
+
|
100
|
+
div[status] md-icon {
|
101
|
+
width: 20px;
|
102
|
+
height: 20px;
|
103
|
+
margin-right: 4px;
|
104
|
+
border-radius: 5px;
|
105
|
+
font-size: 21px;
|
106
|
+
font-weight: 700;
|
107
|
+
}
|
108
|
+
div[status] md-icon[request] {
|
109
|
+
background-color: #f7f7f7;
|
110
|
+
color: #4e5055;
|
111
|
+
}
|
112
|
+
div[status] md-icon[pass] {
|
113
|
+
background-color: #4bbb4a;
|
114
|
+
}
|
115
|
+
div[status] md-icon[fail] {
|
116
|
+
background-color: #ff4444;
|
117
|
+
}
|
118
|
+
|
119
|
+
span[name] {
|
120
|
+
width: 40px;
|
121
|
+
color: #4e5055;
|
122
|
+
margin-left: 6px;
|
123
|
+
text-align: center;
|
124
|
+
}
|
125
|
+
|
126
|
+
span[name][active] {
|
127
|
+
color: var(--md-sys-color-on-error);
|
128
|
+
background-color: var(--md-sys-color-error);
|
129
|
+
border-radius: 999px;
|
130
|
+
}
|
131
|
+
|
132
|
+
ox-select-floor {
|
133
|
+
--ox-select-floor-rotate-x: ${rotateX}deg;
|
134
|
+
--ox-select-floor-rotate-x-active: ${rotateXForActive}deg;
|
135
|
+
--ox-select-floor-perspective: ${perspective}px;
|
136
|
+
}
|
137
|
+
</style>
|
138
|
+
|
139
|
+
<div class="container md-typescale-body-large-prominent">
|
140
|
+
<ox-select-floor
|
141
|
+
.cards=${cards}
|
142
|
+
.bottomLimit=${bottomLimit}
|
143
|
+
?disabled=${disabled}
|
144
|
+
.interval=${interval}
|
145
|
+
@change=${(e) => console.log(e.target.value)}
|
146
|
+
>
|
147
|
+
${cards.map(({ image, name }, index) => html `<div slot="template-${index}" status>
|
148
|
+
<div content>
|
149
|
+
<span><md-icon request slot="icon">exclamation</md-icon>100</span>
|
150
|
+
<span><md-icon pass slot="icon">check</md-icon>50</span>
|
151
|
+
<span><md-icon fail slot="icon">close</md-icon>5</span>
|
152
|
+
</div>
|
153
|
+
<span name>${name}</span>
|
154
|
+
</div>`)}
|
155
|
+
</ox-select-floor>
|
156
|
+
</div>
|
157
|
+
`;
|
158
|
+
export const Regular = Template.bind({});
|
159
|
+
Regular.args = {
|
160
|
+
bottomLimit: 70,
|
161
|
+
perspective: 1200,
|
162
|
+
rotateX: 60,
|
163
|
+
rotateXForActive: 40,
|
164
|
+
interval: 0
|
165
|
+
};
|
166
|
+
//# sourceMappingURL=ox-select-floor.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-select-floor.stories.js","sourceRoot":"","sources":["../../stories/ox-select-floor.stories.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA;AAElC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAC1F,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAEnD,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,iBAAiB;IAC5B,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAChC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAClC,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAClC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC9B,gBAAgB,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAChC;CACF,CAAA;AAkBD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;IACpD,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,KAAK,GAAG,CAAC,GAAG,GAAG;KACtB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAoB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,WAAW,GAAG,EAAE,EAChB,WAAW,GAAG,IAAI,EAClB,OAAO,GAAG,EAAE,EACZ,gBAAgB,GAAG,EAAE,EACrB,QAAQ,GAAG,CAAC,EACH,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwFK,OAAO;2CACA,gBAAgB;uCACpB,WAAW;;;;;;eAMnC,KAAK;qBACC,WAAW;kBACd,QAAQ;kBACR,QAAQ;gBACV,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAG,CAAiB,CAAC,MAAe,CAAC,KAAK,CAAC;;QAE5E,KAAK,CAAC,GAAG,CACT,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CACzB,IAAI,CAAA,uBAAuB,KAAK;;;;;;yBAMjB,IAAI;iBACZ,CACV;;;CAGN,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,EAAE;IACX,gBAAgB,EAAE,EAAE;IACpB,QAAQ,EAAE,CAAC;CACZ,CAAA","sourcesContent":["import '../src/ox-select-floor.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\nimport { IMAGE } from './image-for-select-floor.js'\n\nexport default {\n title: 'ox-select-floor',\n component: 'ox-select-floor',\n argTypes: {\n disabled: { control: 'boolean' },\n value: { control: 'text' },\n bottomLimit: { control: 'number' },\n perspective: { control: 'number' },\n rotateX: { control: 'number' },\n rotateXForActive: { control: 'number' },\n interval: { control: 'number' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n value?: string\n bottomLimit?: number\n perspective?: number\n rotateX?: number\n rotateXForActive?: number\n disabled?: boolean\n interval?: number\n}\n\nconst cards = new Array(10).fill({}).map((_, index) => {\n return {\n image: IMAGE,\n name: index + 1 + '층'\n }\n})\n\nconst Template: Story<ArgTypes> = ({\n value,\n disabled,\n bottomLimit = 70,\n perspective = 1200,\n rotateX = 60,\n rotateXForActive = 40,\n interval = 0\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n html,\n body {\n margin: 0;\n padding: 0;\n overflow: hidden;\n\n overscroll-behavior-y: none;\n\n /* This is a font-stack that tries to use the system-default sans-serifs first */\n font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n\n accent-color: var(--md-sys-color-primary);\n background-color: var(--md-sys-color-background);\n }\n\n .container {\n height: 1000px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n\n div[status] {\n display: flex;\n position: absolute;\n right: 0px;\n bottom: 0px;\n align-items: center;\n right: 3%;\n }\n\n div[status] > div[content] {\n display: flex;\n background-color: #4e5055;\n color: #fff;\n padding: 5px 7px;\n border-radius: 7px;\n gap: 10px;\n font-size: 14px;\n }\n\n div[status] span {\n display: flex;\n align-items: center;\n width: 48px;\n }\n\n div[status] md-icon {\n width: 20px;\n height: 20px;\n margin-right: 4px;\n border-radius: 5px;\n font-size: 21px;\n font-weight: 700;\n }\n div[status] md-icon[request] {\n background-color: #f7f7f7;\n color: #4e5055;\n }\n div[status] md-icon[pass] {\n background-color: #4bbb4a;\n }\n div[status] md-icon[fail] {\n background-color: #ff4444;\n }\n\n span[name] {\n width: 40px;\n color: #4e5055;\n margin-left: 6px;\n text-align: center;\n }\n\n span[name][active] {\n color: var(--md-sys-color-on-error);\n background-color: var(--md-sys-color-error);\n border-radius: 999px;\n }\n\n ox-select-floor {\n --ox-select-floor-rotate-x: ${rotateX}deg;\n --ox-select-floor-rotate-x-active: ${rotateXForActive}deg;\n --ox-select-floor-perspective: ${perspective}px;\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-select-floor\n .cards=${cards}\n .bottomLimit=${bottomLimit}\n ?disabled=${disabled}\n .interval=${interval}\n @change=${(e: Event) => console.log(((e as CustomEvent).target as any)!.value)}\n >\n ${cards.map(\n ({ image, name }, index) =>\n html`<div slot=\"template-${index}\" status>\n <div content>\n <span><md-icon request slot=\"icon\">exclamation</md-icon>100</span>\n <span><md-icon pass slot=\"icon\">check</md-icon>50</span>\n <span><md-icon fail slot=\"icon\">close</md-icon>5</span>\n </div>\n <span name>${name}</span>\n </div>`\n )}\n </ox-select-floor>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n bottomLimit: 70,\n perspective: 1200,\n rotateX: 60,\n rotateXForActive: 40,\n interval: 0\n}\n"]}
|