@daikin-oss/design-system-web-components 0.0.0 → 0.1.0
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/README.md +92 -74
- package/dist/colors.js +1 -1
- package/dist/colors.js.map +1 -1
- package/dist/components/button/button.css.js +1 -1
- package/dist/components/button/daikin-button.d.ts +49 -2
- package/dist/components/button/daikin-button.d.ts.map +1 -1
- package/dist/components/button/daikin-button.js +140 -65
- package/dist/components/button/daikin-button.js.map +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/stories/common.d.ts.map +1 -1
- package/dist/lit-workaround-types.d.ts +3 -0
- package/dist/lit-workaround-types.d.ts.map +1 -0
- package/dist/node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js +66 -0
- package/dist/node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +47 -0
- package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +4 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/tailwind.css.js +1 -1
- package/dist/typeUtils.d.ts +4 -0
- package/dist/typeUtils.d.ts.map +1 -0
- package/lib/colors.js +1 -1
- package/lib/colors.js.map +1 -1
- package/lib/components/button/button.css.js +1 -1
- package/lib/components/button/daikin-button.d.ts +49 -2
- package/lib/components/button/daikin-button.d.ts.map +1 -1
- package/lib/components/button/daikin-button.js +142 -67
- package/lib/components/button/daikin-button.js.map +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/index.d.ts.map +1 -1
- package/lib/components/button/index.js +4 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/stories/common.d.ts.map +1 -1
- package/lib/lit-workaround-types.d.ts +3 -0
- package/lib/lit-workaround-types.d.ts.map +1 -0
- package/lib/node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js +125 -0
- package/lib/node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js.map +1 -0
- package/lib/node_modules/class-variance-authority/dist/index.js +50 -0
- package/lib/node_modules/class-variance-authority/dist/index.js.map +1 -0
- package/lib/node_modules/clsx/dist/clsx.js +9 -0
- package/lib/node_modules/clsx/dist/clsx.js.map +1 -0
- package/lib/tailwind.css.js +1 -1
- package/lib/typeUtils.d.ts +4 -0
- package/lib/typeUtils.d.ts.map +1 -0
- package/package.json +12 -5
package/README.md
CHANGED
|
@@ -2,52 +2,110 @@
|
|
|
2
2
|
|
|
3
3
|
This project is an implementation of the Daikin Design Kit using web components.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
---
|
|
6
|
+
## Usage
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Start by installing the package:
|
|
8
9
|
|
|
9
10
|
```bash
|
|
10
|
-
npm i
|
|
11
|
+
npm i @daikin-oss/design-system-web-components
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
You can then import necessary components in your bundle:
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
```javascript
|
|
17
|
+
import '@daikin-oss/design-system-web-components/dist/components/button/index.js';
|
|
18
|
+
```
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
By default, out-of-the-box, the styles are for Daikin brand in light mode.
|
|
21
|
+
|
|
22
|
+
### Dark Mode and Brands/Themes
|
|
23
|
+
|
|
24
|
+
For dark-mode support and non-daikin brands, you need to add the `tokens` package and include the CSS reference in your html:
|
|
19
25
|
|
|
20
26
|
```bash
|
|
21
|
-
npm
|
|
27
|
+
npm install '@daikin-oss/dds-tokens
|
|
22
28
|
```
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
#### Dark Mode
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
Reference the CSS in HTML:
|
|
27
33
|
|
|
28
|
-
|
|
34
|
+
```html
|
|
35
|
+
<link rel="stylesheet" href="node_modules/@daikin-oss/dds-tokens/build/css/DKN/Dark/buttons.css" media="(prefers-color-scheme: dark)">
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Using CSS `@import` with `prefers-color-scheme`:
|
|
39
|
+
|
|
40
|
+
```css
|
|
41
|
+
@import '@daikin-oss/dds-tokens/css/daikin/Dark/buttons.css'
|
|
42
|
+
(prefers-color-scheme: dark);
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Other brands/themes
|
|
47
|
+
|
|
48
|
+
Reference the CSS in HTML:
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<link rel="stylesheet" href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/buttons.css" media="(prefers-color-scheme: light)">
|
|
52
|
+
<link rel="stylesheet" href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/buttons.css" media="(prefers-color-scheme: dark)">
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Using CSS `@import` with `prefers-color-scheme`:
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
@import '@daikin-oss/dds-tokens/css/aaf/Light/buttons.css'
|
|
59
|
+
(prefers-color-scheme: light);
|
|
60
|
+
@import '@daikin-oss/dds-tokens/css/aaf/Dark/buttons.css'
|
|
61
|
+
(prefers-color-scheme: dark);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
## Contributors
|
|
66
|
+
|
|
67
|
+
The following are instructions for package contributors.
|
|
68
|
+
|
|
69
|
+
### Setup
|
|
70
|
+
|
|
71
|
+
Clone and install dependencies:
|
|
29
72
|
|
|
30
73
|
```bash
|
|
31
|
-
|
|
74
|
+
git clone https://github.com/dsv-rp/DDS.git
|
|
75
|
+
cd DDS
|
|
76
|
+
npm i
|
|
32
77
|
```
|
|
33
78
|
|
|
34
|
-
|
|
79
|
+
### Build
|
|
80
|
+
|
|
81
|
+
To build files for production:
|
|
35
82
|
|
|
36
83
|
```bash
|
|
37
|
-
npm run
|
|
84
|
+
npm run build
|
|
38
85
|
```
|
|
39
86
|
|
|
40
|
-
|
|
87
|
+
Rollup is used to transform TypeScript code into JavaScript that runs in modern browsers.
|
|
88
|
+
Tailwind classes are also purged.
|
|
41
89
|
|
|
42
|
-
|
|
90
|
+
Build components and output in /dist:
|
|
43
91
|
|
|
44
|
-
|
|
92
|
+
### Documentation
|
|
93
|
+
|
|
94
|
+
Storybook is used to document design system components/tools/examples.
|
|
95
|
+
|
|
96
|
+
To run in development:
|
|
45
97
|
|
|
46
98
|
```bash
|
|
47
|
-
npm run
|
|
99
|
+
npm run storybook
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
To produce distributable files in /storybook-static folder:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
npm run build-storybook
|
|
48
106
|
```
|
|
49
107
|
|
|
50
|
-
|
|
108
|
+
### Testing
|
|
51
109
|
|
|
52
110
|
Visual regression testing is done by a combination of jest and puppeteer.
|
|
53
111
|
Currently, web components has full support in most major frameworks [except for React](https://custom-elements-everywhere.com/).
|
|
@@ -57,16 +115,26 @@ As such, we test both web components by themselves, and also test when imported
|
|
|
57
115
|
npm run test
|
|
58
116
|
```
|
|
59
117
|
|
|
60
|
-
|
|
118
|
+
### Linting
|
|
119
|
+
|
|
120
|
+
Linting is done by ESLint for general linting of TypeScript and JavaScript, and [lit-analyzer](https://www.npmjs.com/package/lit-analyzer) to type check bindings in lit-html templates.
|
|
121
|
+
|
|
122
|
+
To lint the project run:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npm run lint
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Design Tokens
|
|
61
129
|
|
|
62
130
|
1. **Source of Truth**: The `tokens` we use is the foundation of our design styles and was grabbed from https://github.com/dsv-rp/dds-tokens/tree/main.
|
|
63
131
|
|
|
64
132
|
2. **Using in Components**: For the most part, we use the js variables to apply as the default style:
|
|
65
133
|
|
|
66
|
-
```
|
|
134
|
+
```javascript
|
|
67
135
|
import {
|
|
68
136
|
buttonColorBackgroundPrimaryActive
|
|
69
|
-
} from '@
|
|
137
|
+
} from '@daikin-oss/dds-tokens/js/daikin/Light/variables.js';
|
|
70
138
|
|
|
71
139
|
class DaikinButton extends LitElement implements DaikinButtonProps {
|
|
72
140
|
static styles = css`
|
|
@@ -81,59 +149,9 @@ class DaikinButton extends LitElement implements DaikinButtonProps {
|
|
|
81
149
|
}
|
|
82
150
|
```
|
|
83
151
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
import '@daikin-zen/design-system-web-components/dist/components/button/index.js';
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
By default, out-of-the-box, the styles are for Daikin brand in light mode.
|
|
91
|
-
|
|
92
|
-
### Dark Mode and Brands/Themes
|
|
93
|
-
|
|
94
|
-
For dark-mode support and non-daikin brands, you need to add the `tokens` package and include the CSS reference in your html:
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
npm install '@daikinlab/dds-tokens
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
#### Dark Mode
|
|
101
|
-
|
|
102
|
-
Reference the CSS in HTML:
|
|
103
|
-
|
|
104
|
-
```
|
|
105
|
-
<link rel="stylesheet" href="node_modules/@daikinlab/dds-tokens/build/css/DKN/Dark/buttons.css" media="(prefers-color-scheme: dark)">
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Using CSS `@import` with `prefers-color-scheme`:
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
@import '@daikinlab/dds-tokens/css/daikin/Dark/buttons.css'
|
|
112
|
-
(prefers-color-scheme: dark);
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
#### Other brands/themes
|
|
117
|
-
|
|
118
|
-
Reference the CSS in HTML:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
<link rel="stylesheet" href="node_modules/@daikinlab/dds-tokens/build/css/AAF/Dark/buttons.css" media="(prefers-color-scheme: light)">
|
|
122
|
-
<link rel="stylesheet" href="node_modules/@daikinlab/dds-tokens/build/css/AAF/Dark/buttons.css" media="(prefers-color-scheme: dark)">
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
Using CSS `@import` with `prefers-color-scheme`:
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
@import '@daikinlab/dds-tokens/css/aaf/Light/buttons.css'
|
|
129
|
-
(prefers-color-scheme: light);
|
|
130
|
-
@import '@daikinlab/dds-tokens/css/aaf/Dark/buttons.css'
|
|
131
|
-
(prefers-color-scheme: dark);
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Tailwind
|
|
152
|
+
### Tailwind
|
|
135
153
|
|
|
136
|
-
There is a custom `daikinPlugin` managed [here](https://github.com/
|
|
154
|
+
There is a custom `daikinPlugin` managed [here](https://github.com/dsv-rp/tailwind)
|
|
137
155
|
|
|
138
156
|
### Using with VSCode
|
|
139
157
|
|
package/dist/colors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorBlue10, colorBlue20, colorBlue30, colorBlue50, colorBlue70, colorBlue80, colorBlue90, colorBlue100, colorGrey10, colorGrey20, colorGrey30, colorGrey40, colorGrey50, colorGrey60, colorGrey80, colorGrey100, colorRed10, colorRed20, colorRed30, colorRed40, colorRed50, colorRed70, colorRed80, colorRed90, colorRed100, colorRed110, colorYellow10, colorYellow20, colorYellow30, colorYellow40, colorYellow60, colorYellow70, colorYellow80, colorYellow90, colorYellow100, colorYellow110, colorGreen10, colorGreen20, colorGreen30, colorGreen40, colorGreen50, colorGreen70, colorGreen80, colorGreen90, colorGreen100, colorGreen110, colorBrandPrimary, colorBlue40, colorGrey90, colorGrey70, colorRed60, colorYellow50, colorGreen60 } from './node_modules/@
|
|
1
|
+
import { colorBlue10, colorBlue20, colorBlue30, colorBlue50, colorBlue70, colorBlue80, colorBlue90, colorBlue100, colorGrey10, colorGrey20, colorGrey30, colorGrey40, colorGrey50, colorGrey60, colorGrey80, colorGrey100, colorRed10, colorRed20, colorRed30, colorRed40, colorRed50, colorRed70, colorRed80, colorRed90, colorRed100, colorRed110, colorYellow10, colorYellow20, colorYellow30, colorYellow40, colorYellow60, colorYellow70, colorYellow80, colorYellow90, colorYellow100, colorYellow110, colorGreen10, colorGreen20, colorGreen30, colorGreen40, colorGreen50, colorGreen70, colorGreen80, colorGreen90, colorGreen100, colorGreen110, colorBrandPrimary, colorBlue40, colorGrey90, colorGrey70, colorRed60, colorYellow50, colorGreen60 } from './node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js';
|
|
2
2
|
|
|
3
3
|
const DAIKIN_PRIMARY_BLUE = colorBrandPrimary;
|
|
4
4
|
const DAIKIN_SECONDARY_BLUE = colorBlue40;
|
package/dist/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sources":["../src/colors.ts"],"sourcesContent":["import {\n colorBrandPrimary, \n // 💣 Missing in tokens - fix later\n colorBlue40 as colorBrandSecondary,\n colorGrey70 as colorBrandMediumgrey,\n colorGrey90 as colorBrandDarkgrey,\n colorGreen60 as colorFeedbackPositive,\n colorYellow50 as colorFeedbackWarning,\n colorRed60 as colorFeedbackNegative,\n colorBlue10,\n colorBlue20,\n colorBlue30,\n colorBlue50,\n colorBlue70,\n colorBlue80,\n colorBlue90,\n colorBlue100,\n colorGrey10,\n colorGrey20,\n colorGrey30,\n colorGrey40,\n colorGrey50,\n colorGrey60,\n colorGrey80,\n colorGrey100,\n colorRed10,\n colorRed20,\n colorRed30,\n colorRed40,\n colorRed50,\n colorRed70,\n colorRed80,\n colorRed90,\n colorRed100,\n colorRed110,\n colorYellow10,\n colorYellow20,\n colorYellow30,\n colorYellow40,\n colorYellow70,\n colorYellow60,\n colorYellow80,\n colorYellow90,\n colorYellow100,\n colorYellow110,\n colorGreen10,\n colorGreen20,\n colorGreen30,\n colorGreen40,\n colorGreen50,\n colorGreen70,\n colorGreen80,\n colorGreen90,\n colorGreen100,\n colorGreen110\n} from '@
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../src/colors.ts"],"sourcesContent":["import {\n colorBrandPrimary, \n // 💣 Missing in tokens - fix later\n colorBlue40 as colorBrandSecondary,\n colorGrey70 as colorBrandMediumgrey,\n colorGrey90 as colorBrandDarkgrey,\n colorGreen60 as colorFeedbackPositive,\n colorYellow50 as colorFeedbackWarning,\n colorRed60 as colorFeedbackNegative,\n colorBlue10,\n colorBlue20,\n colorBlue30,\n colorBlue50,\n colorBlue70,\n colorBlue80,\n colorBlue90,\n colorBlue100,\n colorGrey10,\n colorGrey20,\n colorGrey30,\n colorGrey40,\n colorGrey50,\n colorGrey60,\n colorGrey80,\n colorGrey100,\n colorRed10,\n colorRed20,\n colorRed30,\n colorRed40,\n colorRed50,\n colorRed70,\n colorRed80,\n colorRed90,\n colorRed100,\n colorRed110,\n colorYellow10,\n colorYellow20,\n colorYellow30,\n colorYellow40,\n colorYellow70,\n colorYellow60,\n colorYellow80,\n colorYellow90,\n colorYellow100,\n colorYellow110,\n colorGreen10,\n colorGreen20,\n colorGreen30,\n colorGreen40,\n colorGreen50,\n colorGreen70,\n colorGreen80,\n colorGreen90,\n colorGreen100,\n colorGreen110\n} from '@daikin-oss/dds-tokens/js/daikin/Light/variables.js';\n\nconst DAIKIN_PRIMARY_BLUE = colorBrandPrimary;\nconst DAIKIN_SECONDARY_BLUE = colorBrandSecondary;\n\nconst DAIKIN_DARK_GREY = colorBrandDarkgrey;\nconst DAIKIN_MEDIUM_GREY = colorBrandMediumgrey;\n\nconst DAIKIN_NEGATIVE = colorFeedbackNegative;\nconst DAIKIN_WARNING = colorFeedbackWarning;\nconst DAIKIN_POSITIVE = colorFeedbackPositive;\n\nexport const colors = {\n daikinBlue: {\n 50: colorBlue10,\n 100: colorBlue20,\n 200: colorBlue30,\n 300: DAIKIN_SECONDARY_BLUE,\n 400: colorBlue50,\n 500: DAIKIN_PRIMARY_BLUE,\n 600: colorBlue70,\n 700: colorBlue80,\n 800: colorBlue90,\n 900: colorBlue100,\n DEFAULT: DAIKIN_PRIMARY_BLUE\n },\n daikinNeutral: {\n 50: colorGrey10,\n 100: colorGrey20,\n 200: colorGrey30,\n 300: colorGrey40,\n 400: colorGrey50,\n 500: colorGrey60,\n 600: DAIKIN_MEDIUM_GREY,\n 700: colorGrey80,\n 800: DAIKIN_DARK_GREY,\n 900: colorGrey100\n },\n daikinRed: {\n 50: colorRed10,\n 100: colorRed20,\n 200: colorRed30,\n 300: colorRed40,\n 400: colorRed50,\n 500: DAIKIN_NEGATIVE,\n 600: colorRed70,\n 700: colorRed80,\n 800: colorRed90,\n 900: colorRed100,\n 1000: colorRed110,\n DEFAULT: DAIKIN_NEGATIVE\n },\n daikinYellow: {\n 50: colorYellow10,\n 100: colorYellow20,\n 200: colorYellow30,\n 300: colorYellow40,\n 400: DAIKIN_WARNING,\n 500: colorYellow60,\n 600: colorYellow70,\n 700: colorYellow80,\n 800: colorYellow90,\n 900: colorYellow100,\n 1000: colorYellow110,\n DEFAULT: DAIKIN_WARNING\n },\n daikinGreen: {\n 50: colorGreen10,\n 100: colorGreen20,\n 200: colorGreen30,\n 300: colorGreen40,\n 400: colorGreen50,\n 500: DAIKIN_POSITIVE,\n 600: colorGreen70,\n 700: colorGreen80,\n 800: colorGreen90,\n 900: colorGreen100,\n 1000: colorGreen110,\n DEFAULT: DAIKIN_POSITIVE\n }\n};\n"],"names":["colorBrandSecondary","colorBrandDarkgrey","colorBrandMediumgrey","colorFeedbackNegative","colorFeedbackWarning","colorFeedbackPositive"],"mappings":";;AAyDA,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAC9C,MAAM,qBAAqB,GAAGA,WAAmB,CAAC;AAElD,MAAM,gBAAgB,GAAGC,WAAkB,CAAC;AAC5C,MAAM,kBAAkB,GAAGC,WAAoB,CAAC;AAEhD,MAAM,eAAe,GAAGC,UAAqB,CAAC;AAC9C,MAAM,cAAc,GAAGC,aAAoB,CAAC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G,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,cAAc;AACnB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,GAAG,EAAE,cAAc;AACnB,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,OAAO,EAAE,cAAc;AAC1B,KAAA;AACD,IAAA,WAAW,EAAE;AACT,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,eAAe;AACpB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,GAAG,EAAE,aAAa;AAClB,QAAA,IAAI,EAAE,aAAa;AACnB,QAAA,OAAO,EAAE,eAAe;AAC3B,KAAA;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from '../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".button{\n font-family:var(--fontFamilyBase);\n}\n\n.button-primary{\n background-color:var(\n --buttonColorBackgroundPrimaryActive,\n var(--defaultButtonColorBackgroundPrimaryActive)\n );\n color:white;\n}\n.button-primary:focus{\n background-color:var(\n --buttonColorBackgroundPrimaryFocus,\n var(--defaultButtonColorBackgroundPrimaryFocus)\n );\n}\n.button-primary:hover{\n background-color:var(\n --buttonColorBackgroundPrimaryHover,\n var(--defaultButtonColorBackgroundPrimaryHover)\n );\n}\n.button-primary:active{\n background-color:var(\n --buttonColorBackgroundPrimaryPress,\n var(--defaultButtonColorBackgroundPrimaryPress)\n );\n}\n.button-primary:disabled{\n background-color:var(\n --buttonColorBackgroundPrimaryDisabled,\n var(--defaultButtonColorBackgroundPrimaryDisabled)\n );\n}\n\n/*# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
var css_248z = ".button{\n font-family:var(--fontFamilyBase);\n}\n\n.button-primary{\n background-color:var(\n --buttonColorBackgroundPrimaryActive,\n var(--defaultButtonColorBackgroundPrimaryActive)\n );\n color:white;\n}\n.button-primary:focus-visible{\n background-color:var(\n --buttonColorBackgroundPrimaryFocus,\n var(--defaultButtonColorBackgroundPrimaryFocus)\n );\n}\n.button-primary:hover{\n background-color:var(\n --buttonColorBackgroundPrimaryHover,\n var(--defaultButtonColorBackgroundPrimaryHover)\n );\n}\n.button-primary:active{\n background-color:var(\n --buttonColorBackgroundPrimaryPress,\n var(--defaultButtonColorBackgroundPrimaryPress)\n );\n}\n.button-primary:disabled{\n background-color:var(\n --buttonColorBackgroundPrimaryDisabled,\n var(--defaultButtonColorBackgroundPrimaryDisabled)\n );\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRvbi5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7SUFDSSxpQ0FBa0M7QUFDdEM7O0FBRUE7SUFDSTs7O0tBR0M7SUFDRCxXQUFZO0FBQ2hCO0FBQ0E7SUFDSTs7O0tBR0M7QUFDTDtBQUNBO0lBQ0k7OztLQUdDO0FBQ0w7QUFDQTtJQUNJOzs7S0FHQztBQUNMO0FBQ0E7SUFDSTs7O0tBR0M7QUFDTCIsImZpbGUiOiJidXR0b24uY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJ1dHRvbiB7XG4gICAgZm9udC1mYW1pbHk6IHZhcigtLWZvbnRGYW1pbHlCYXNlKTtcbn1cblxuLmJ1dHRvbi1wcmltYXJ5IHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoXG4gICAgICAgIC0tYnV0dG9uQ29sb3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
|
4
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -1,21 +1,68 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { OmitNull } from "../../typeUtils";
|
|
4
|
+
declare const buttonCN: (props?: ({
|
|
5
|
+
intent?: "primary" | "secondary" | "tertiary" | "primaryDanger" | null | undefined;
|
|
6
|
+
size?: "default" | "condensed" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type ButtonProps = OmitNull<VariantProps<typeof buttonCN>>;
|
|
2
9
|
export interface DaikinButtonProps {
|
|
3
10
|
/**
|
|
4
11
|
* Type of action
|
|
5
12
|
*/
|
|
6
|
-
variant
|
|
13
|
+
variant?: ButtonProps["intent"];
|
|
7
14
|
/**
|
|
8
15
|
* Whether to show the disabled state
|
|
9
16
|
*/
|
|
10
17
|
disabled?: boolean;
|
|
18
|
+
href?: string;
|
|
19
|
+
size?: ButtonProps["size"];
|
|
20
|
+
type?: 'button' | 'submit' | 'reset';
|
|
21
|
+
role?: string;
|
|
22
|
+
isLoading?: boolean;
|
|
11
23
|
}
|
|
12
24
|
/**
|
|
13
25
|
* Primary UI component for user interaction
|
|
14
26
|
*/
|
|
15
27
|
declare class DaikinButton extends LitElement implements DaikinButtonProps {
|
|
28
|
+
focus(): void;
|
|
16
29
|
static styles: import("lit").CSSResult;
|
|
17
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Type of variant.
|
|
32
|
+
*/
|
|
33
|
+
variant: ButtonProps["intent"];
|
|
34
|
+
/**
|
|
35
|
+
* `true` if the button should be disabled.
|
|
36
|
+
*/
|
|
18
37
|
disabled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Set a icon in the right of button label.
|
|
40
|
+
*/
|
|
41
|
+
rightIcon: string;
|
|
42
|
+
/**
|
|
43
|
+
* Set a icon in the left of button label.
|
|
44
|
+
*/
|
|
45
|
+
leftIcon: string;
|
|
46
|
+
/**
|
|
47
|
+
* Link `href`. If present, this button is rendered as `<a>`.
|
|
48
|
+
*/
|
|
49
|
+
href: string;
|
|
50
|
+
/**
|
|
51
|
+
* Specify the button size.
|
|
52
|
+
*/
|
|
53
|
+
size: ButtonProps["size"];
|
|
54
|
+
/**
|
|
55
|
+
* Specify the button type.
|
|
56
|
+
*/
|
|
57
|
+
type: "button" | "submit" | "reset";
|
|
58
|
+
/**
|
|
59
|
+
* Specify the button role.
|
|
60
|
+
*/
|
|
61
|
+
role: string;
|
|
62
|
+
/**
|
|
63
|
+
* Specify whether the button is loading.
|
|
64
|
+
*/
|
|
65
|
+
isLoading: boolean;
|
|
19
66
|
connectedCallback(): void;
|
|
20
67
|
render(): import("lit-html").TemplateResult<1>;
|
|
21
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daikin-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/daikin-button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"daikin-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/daikin-button.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAKvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,QAAQ;;;8EAmDZ,CAAC;AAEH,KAAK,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC3D,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,cACM,YAAa,SAAQ,UAAW,YAAW,iBAAiB;IAErD,KAAK;IAId,MAAM,CAAC,MAAM,0BA4BX;IAEF;;OAEG;IAEH,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAY;IAE1C;;OAEG;IAEH,QAAQ,UAAQ;IAEhB;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,QAAQ,SAAM;IAEd;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAY;IAErC;;OAEG;IAEH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAE/C;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAY;IAExB;;OAEG;IAEH,SAAS,UAAS;IAElB,iBAAiB,IAAI,IAAI;IAmBzB,MAAM;CAqBT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACJ;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __decorate } from '../../_virtual/_tslib.js';
|
|
2
|
-
import { buttonColorBackgroundPrimaryActive, buttonColorBackgroundPrimaryFocus, buttonColorBackgroundPrimaryHover, buttonColorBackgroundPrimaryPress, buttonColorBackgroundPrimaryDisabled } from '../../node_modules/@
|
|
3
|
-
import ctl from '../../node_modules/@netlify/classnames-template-literals/dist/classnames-template-literals.esm.js';
|
|
2
|
+
import { buttonColorBackgroundPrimaryActive, buttonColorBackgroundPrimaryFocus, buttonColorBackgroundPrimaryHover, buttonColorBackgroundPrimaryPress, buttonColorBackgroundPrimaryDisabled } from '../../node_modules/@daikin-oss/dds-tokens/build/js/DKN/Light/variables.js';
|
|
4
3
|
import '../../node_modules/@lit/reactive-element/node/reactive-element.js';
|
|
5
4
|
import { html as T } from '../../node_modules/lit-html/node/lit-html.js';
|
|
6
5
|
import { LitElement as s } from '../../node_modules/lit-element/lit-element.js';
|
|
@@ -9,61 +8,108 @@ import { property as n } from '../../node_modules/@lit/reactive-element/node/dec
|
|
|
9
8
|
import '../../node_modules/@lit/reactive-element/node/decorators/query-assigned-elements.js';
|
|
10
9
|
import css_248z from '../../tailwind.css.js';
|
|
11
10
|
import css_248z$1 from './button.css.js';
|
|
11
|
+
import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
|
|
12
12
|
import { css as i, unsafeCSS as r } from '../../node_modules/@lit/reactive-element/node/css-tag.js';
|
|
13
13
|
|
|
14
14
|
var DaikinButton_1;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
15
|
+
const buttonCN = cva(["inline-flex", "justify-center", "items-center", "font-daikinSerif", "font-bold", "rounded-lg", "tracking-wide", "text-wrap", "disabled:cursor-default", "h-full", "w-full"], {
|
|
16
|
+
variants: {
|
|
17
|
+
intent: {
|
|
18
|
+
primary: [
|
|
19
|
+
"button-primary",
|
|
20
|
+
"focus-visible:outline-none"
|
|
21
|
+
],
|
|
22
|
+
secondary: [
|
|
23
|
+
"border-2",
|
|
24
|
+
"bg-white",
|
|
25
|
+
"text-daikinBlue-500",
|
|
26
|
+
"border-daikinBlue-500",
|
|
27
|
+
"hover:text-daikinBlue-300",
|
|
28
|
+
"hover:border-daikinBlue-300",
|
|
29
|
+
"active:text-daikinBlue-600",
|
|
30
|
+
"active:border-daikinBlue-600",
|
|
31
|
+
"focus-visible:text-daikinBlue-700",
|
|
32
|
+
"focus-visible:border-daikinBlue-700",
|
|
33
|
+
"disabled:border-daikinNeutral-300",
|
|
34
|
+
"disabled:text-daikinNeutral-400",
|
|
35
|
+
"disabled:border",
|
|
36
|
+
"focus-visible:outline-none"
|
|
37
|
+
],
|
|
38
|
+
tertiary: [
|
|
39
|
+
"text-daikinBlue-400",
|
|
40
|
+
"bg-none",
|
|
41
|
+
"border-none",
|
|
42
|
+
"shadow-none",
|
|
43
|
+
"hover:bg-daikinNeutral-100",
|
|
44
|
+
"disabled:bg-transparent",
|
|
45
|
+
"disabled:text-daikinNeutral-400",
|
|
46
|
+
],
|
|
47
|
+
primaryDanger: [
|
|
48
|
+
"bg-daikinRed",
|
|
49
|
+
"text-white",
|
|
50
|
+
"hover:bg-daikinRed-400",
|
|
51
|
+
"focus-visible:bg-daikinRed-700",
|
|
52
|
+
"disabled:bg-daikinNeutral-300",
|
|
53
|
+
"active:bg-daikinRed-700",
|
|
54
|
+
"focus-visible:outline-none"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
default: ["px-4", "text-[14px]"],
|
|
59
|
+
condensed: ["px-[10px]", "text-[12px]"],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: {
|
|
63
|
+
intent: "primary",
|
|
64
|
+
size: "condensed"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
60
67
|
/**
|
|
61
68
|
* Primary UI component for user interaction
|
|
62
69
|
*/
|
|
63
70
|
let DaikinButton = DaikinButton_1 = class DaikinButton extends s {
|
|
64
71
|
constructor() {
|
|
65
72
|
super(...arguments);
|
|
73
|
+
/**
|
|
74
|
+
* Type of variant.
|
|
75
|
+
*/
|
|
76
|
+
this.variant = "primary";
|
|
77
|
+
/**
|
|
78
|
+
* `true` if the button should be disabled.
|
|
79
|
+
*/
|
|
66
80
|
this.disabled = false;
|
|
81
|
+
/**
|
|
82
|
+
* Set a icon in the right of button label.
|
|
83
|
+
*/
|
|
84
|
+
this.rightIcon = "";
|
|
85
|
+
/**
|
|
86
|
+
* Set a icon in the left of button label.
|
|
87
|
+
*/
|
|
88
|
+
this.leftIcon = "";
|
|
89
|
+
/**
|
|
90
|
+
* Link `href`. If present, this button is rendered as `<a>`.
|
|
91
|
+
*/
|
|
92
|
+
this.href = "";
|
|
93
|
+
/**
|
|
94
|
+
* Specify the button size.
|
|
95
|
+
*/
|
|
96
|
+
this.size = "default";
|
|
97
|
+
/**
|
|
98
|
+
* Specify the button type.
|
|
99
|
+
*/
|
|
100
|
+
this.type = "button";
|
|
101
|
+
/**
|
|
102
|
+
* Specify the button role.
|
|
103
|
+
*/
|
|
104
|
+
this.role = "button";
|
|
105
|
+
/**
|
|
106
|
+
* Specify whether the button is loading.
|
|
107
|
+
*/
|
|
108
|
+
this.isLoading = false;
|
|
109
|
+
}
|
|
110
|
+
focus() {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
(_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button")) === null || _b === void 0 ? void 0 : _b.focus();
|
|
67
113
|
}
|
|
68
114
|
connectedCallback() {
|
|
69
115
|
super.connectedCallback();
|
|
@@ -80,26 +126,21 @@ let DaikinButton = DaikinButton_1 = class DaikinButton extends s {
|
|
|
80
126
|
];
|
|
81
127
|
}
|
|
82
128
|
render() {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
case 'primary-danger':
|
|
95
|
-
CN += buttonPrimaryDanger;
|
|
96
|
-
break;
|
|
97
|
-
default:
|
|
98
|
-
CN += 'button-primary';
|
|
129
|
+
const buttonClassName = buttonCN({ intent: this.variant, size: this.size });
|
|
130
|
+
const content = T `
|
|
131
|
+
<slot name="leftIcon"></slot>
|
|
132
|
+
<span><slot></slot></span>
|
|
133
|
+
<slot name="rightIcon"></slot>
|
|
134
|
+
`;
|
|
135
|
+
if (this.href) {
|
|
136
|
+
return T `
|
|
137
|
+
<a href="${this.href}" class="${buttonClassName}" role="${this.role}">
|
|
138
|
+
${content}
|
|
139
|
+
</a>`;
|
|
99
140
|
}
|
|
100
141
|
return T `
|
|
101
|
-
<button class="${
|
|
102
|
-
|
|
142
|
+
<button class="${buttonClassName}" ?disabled="${this.disabled}" type="${this.type}" role="${this.role}">
|
|
143
|
+
${content}
|
|
103
144
|
</button>
|
|
104
145
|
`;
|
|
105
146
|
}
|
|
@@ -112,6 +153,16 @@ DaikinButton.styles = i `
|
|
|
112
153
|
--defaultButtonColorBackgroundPrimaryPress: ${r(buttonColorBackgroundPrimaryPress)};
|
|
113
154
|
--defaultButtonColorBackgroundPrimaryDisabled: ${r(buttonColorBackgroundPrimaryDisabled)};
|
|
114
155
|
}
|
|
156
|
+
:host {
|
|
157
|
+
display: inline-block;
|
|
158
|
+
width: fit-content;
|
|
159
|
+
min-height: 42px;
|
|
160
|
+
height: 1px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([size="condensed"]) {
|
|
164
|
+
min-height: 32px;
|
|
165
|
+
}
|
|
115
166
|
`;
|
|
116
167
|
__decorate([
|
|
117
168
|
n({ type: String })
|
|
@@ -119,7 +170,31 @@ __decorate([
|
|
|
119
170
|
__decorate([
|
|
120
171
|
n({ type: Boolean, reflect: true })
|
|
121
172
|
], DaikinButton.prototype, "disabled", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
n({ type: String, reflect: true })
|
|
175
|
+
], DaikinButton.prototype, "rightIcon", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
n({ type: String, reflect: true })
|
|
178
|
+
], DaikinButton.prototype, "leftIcon", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
n({ type: String, reflect: true })
|
|
181
|
+
], DaikinButton.prototype, "href", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
n({ type: String, reflect: true })
|
|
184
|
+
], DaikinButton.prototype, "size", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
n({ type: String, reflect: true })
|
|
187
|
+
], DaikinButton.prototype, "type", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
n({ type: String, reflect: true })
|
|
190
|
+
], DaikinButton.prototype, "role", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
n({ type: Boolean })
|
|
193
|
+
], DaikinButton.prototype, "isLoading", void 0);
|
|
122
194
|
DaikinButton = DaikinButton_1 = __decorate([
|
|
123
195
|
e('daikin-button')
|
|
124
196
|
], DaikinButton);
|
|
197
|
+
var DaikinButton$1 = DaikinButton;
|
|
198
|
+
|
|
199
|
+
export { DaikinButton$1 as default };
|
|
125
200
|
//# sourceMappingURL=daikin-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daikin-button.js","sources":["../../../src/components/button/daikin-button.ts"],"sourcesContent":["import {\n buttonColorBackgroundPrimaryActive,\n buttonColorBackgroundPrimaryFocus,\n buttonColorBackgroundPrimaryHover,\n buttonColorBackgroundPrimaryPress,\n buttonColorBackgroundPrimaryDisabled\n} from '@daikinlab/dds-tokens/js/daikin/Light/variables.js';\nimport ctl from '@netlify/classnames-template-literals';\nimport { LitElement, html, css, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport tailwindStyles from '../../tailwind.css';\nimport styles from './button.css';\n\nconst button = ctl(`\n inline-block\n font-daikinSerif\n rounded-lg \n text-base\n px-4\n py-2\n shadow-lg\n tracking-wide \n disabled:cursor-default \n disabled:shadow-none \n\n md:py-3\n md:px-6\n`);\n\nconst buttonSecondary = ctl(`\n border-2\n bg-white\n text-daikinBlue-500\n border-daikinBlue-500\n\n hover:bg-daikinBlue-100\n\n disabled:bg-white\n disabled:border-daikinNeutral-300\n disabled:text-daikinNeutral-400\n disabled:border\n`);\n\nconst buttonTertiary = ctl(`\n text-daikinBlue-400\n bg-none\n border-none\n shadow-none\n\n hover:bg-daikinNeutral-100\n disabled:bg-transparent\n disabled:text-daikinNeutral-400\n`);\n\nconst buttonPrimaryDanger = ctl(`\n bg-daikinRed\n text-white \n hover:bg-daikinRed-400\n focus:bg-daikinRed-700\n disabled:bg-daikinNeutral-300\n`);\n\nexport interface DaikinButtonProps {\n /**\n * Type of action\n */\n variant: 'primary' | 'secondary' | 'tertiary' | 'primary-danger';\n /**\n * Whether to show the disabled state\n */\n disabled?: boolean;\n}\n\n/**\n * Primary UI component for user interaction\n */\n@customElement('daikin-button')\nclass DaikinButton extends LitElement implements DaikinButtonProps {\n static styles = css`\n :host {\n --defaultButtonColorBackgroundPrimaryActive: ${unsafeCSS(\n buttonColorBackgroundPrimaryActive\n )};\n --defaultButtonColorBackgroundPrimaryFocus: ${unsafeCSS(\n buttonColorBackgroundPrimaryFocus\n )};\n --defaultButtonColorBackgroundPrimaryHover: ${unsafeCSS(\n buttonColorBackgroundPrimaryHover\n )};\n --defaultButtonColorBackgroundPrimaryPress: ${unsafeCSS(\n buttonColorBackgroundPrimaryPress\n )};\n --defaultButtonColorBackgroundPrimaryDisabled: ${unsafeCSS(\n buttonColorBackgroundPrimaryDisabled\n )};\n }\n `;\n\n @property({ type: String })\n variant: 'primary' | 'secondary' | 'tertiary' | 'primary-danger';\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n connectedCallback(): void {\n super.connectedCallback();\n\n const tailwind = new CSSStyleSheet();\n tailwind.replace(tailwindStyles);\n\n const buttonStyles = new CSSStyleSheet();\n buttonStyles.replaceSync(styles);\n\n const defaultsVariables = new CSSStyleSheet();\n defaultsVariables.replaceSync(DaikinButton.styles.cssText);\n\n (this.renderRoot as ShadowRoot).adoptedStyleSheets = [\n tailwind,\n defaultsVariables,\n buttonStyles\n ];\n }\n\n render() {\n let CN = `${button} `;\n\n switch (this.variant) {\n case 'primary':\n CN += 'button-primary';\n break;\n case 'secondary':\n CN += buttonSecondary;\n break;\n case 'tertiary':\n CN += buttonTertiary;\n break;\n case 'primary-danger':\n CN += buttonPrimaryDanger;\n break;\n default:\n CN += 'button-primary';\n }\n\n return html`\n <button class=\"${CN}\" ?disabled=\"${this.disabled}\">\n <slot></slot>\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'daikin-button': DaikinButton;\n }\n}\n\nexport default DaikinButton;\n"],"names":["LitElement","tailwindStyles","styles","html","css","unsafeCSS","property","customElement"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,MAAM,GAAG,GAAG,CAAC,CAAA;;;;;;;;;;;;;;AAclB,CAAA,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,GAAG,CAAC,CAAA;;;;;;;;;;;;AAY3B,CAAA,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,GAAG,CAAC,CAAA;;;;;;;;;AAS1B,CAAA,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,GAAG,CAAC,CAAA;;;;;;AAM/B,CAAA,CAAC,CAAC;AAaH;;AAEG;AAEH,IAAM,YAAY,GAAA,cAAA,GAAlB,MAAM,YAAa,SAAQA,CAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;QAyBI,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KA+CpB;IA7CG,iBAAiB,GAAA;QACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;AAE1B,QAAA,MAAM,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;AACrC,QAAA,QAAQ,CAAC,OAAO,CAACC,QAAc,CAA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CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACsC,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGjE,UAAA,CAAA;IADCA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAzBf,YAAY,GAAA,cAAA,GAAA,UAAA,CAAA;IADjBC,CAAa,CAAC,eAAe,CAAC;AACzB,CAAA,EAAA,YAAY,CAwEjB"}
|
|
1
|
+
{"version":3,"file":"daikin-button.js","sources":["../../../src/components/button/daikin-button.ts"],"sourcesContent":["import {\n buttonColorBackgroundPrimaryActive,\n buttonColorBackgroundPrimaryFocus,\n buttonColorBackgroundPrimaryHover,\n buttonColorBackgroundPrimaryPress,\n buttonColorBackgroundPrimaryDisabled\n} from '@daikin-oss/dds-tokens/js/daikin/Light/variables.js';\nimport { LitElement, html, css, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport tailwindStyles from '../../tailwind.css';\nimport styles from './button.css';\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { OmitNull } from \"../../typeUtils\";\n\nconst buttonCN = cva([\"inline-flex\", \"justify-center\", \"items-center\", \"font-daikinSerif\", \"font-bold\", \"rounded-lg\", \"tracking-wide\", \"text-wrap\", \"disabled:cursor-default\", \"h-full\", \"w-full\"], {\n variants: {\n intent: {\n primary: [\n \"button-primary\",\n \"focus-visible:outline-none\"\n ],\n secondary: [\n \"border-2\",\n \"bg-white\",\n \"text-daikinBlue-500\",\n \"border-daikinBlue-500\",\n \"hover:text-daikinBlue-300\",\n \"hover:border-daikinBlue-300\",\n \"active:text-daikinBlue-600\",\n \"active:border-daikinBlue-600\",\n \"focus-visible:text-daikinBlue-700\",\n \"focus-visible:border-daikinBlue-700\",\n \"disabled:border-daikinNeutral-300\",\n \"disabled:text-daikinNeutral-400\",\n \"disabled:border\",\n \"focus-visible:outline-none\"\n ],\n tertiary: [\n \"text-daikinBlue-400\",\n \"bg-none\",\n \"border-none\",\n \"shadow-none\",\n \"hover:bg-daikinNeutral-100\",\n \"disabled:bg-transparent\",\n \"disabled:text-daikinNeutral-400\",\n ],\n primaryDanger: [\n \"bg-daikinRed\",\n \"text-white\",\n \"hover:bg-daikinRed-400\",\n \"focus-visible:bg-daikinRed-700\",\n \"disabled:bg-daikinNeutral-300\",\n \"active:bg-daikinRed-700\",\n \"focus-visible:outline-none\"\n ]\n },\n size: {\n default: [\"px-4\", \"text-[14px]\"],\n condensed: [\"px-[10px]\", \"text-[12px]\"],\n },\n },\n defaultVariants: {\n intent: \"primary\",\n size: \"condensed\"\n }\n});\n\ntype ButtonProps = OmitNull<VariantProps<typeof buttonCN>>;\nexport interface DaikinButtonProps {\n /**\n * Type of action\n */\n variant?: ButtonProps[\"intent\"];\n /**\n * Whether to show the disabled state\n */\n disabled?: boolean;\n href?: string;\n size?: ButtonProps[\"size\"];\n type?: 'button' | 'submit' | 'reset';\n role?: string;\n isLoading?: boolean;\n}\n\n/**\n * Primary UI component for user interaction\n */\n@customElement('daikin-button')\nclass DaikinButton extends LitElement implements DaikinButtonProps {\n\n override focus() {\n this.shadowRoot?.querySelector(\"button\")?.focus();\n }\n\n static styles = css`\n :host {\n --defaultButtonColorBackgroundPrimaryActive: ${unsafeCSS(\n buttonColorBackgroundPrimaryActive\n )};\n --defaultButtonColorBackgroundPrimaryFocus: ${unsafeCSS(\n buttonColorBackgroundPrimaryFocus\n )};\n --defaultButtonColorBackgroundPrimaryHover: ${unsafeCSS(\n buttonColorBackgroundPrimaryHover\n )};\n --defaultButtonColorBackgroundPrimaryPress: ${unsafeCSS(\n buttonColorBackgroundPrimaryPress\n )};\n --defaultButtonColorBackgroundPrimaryDisabled: ${unsafeCSS(\n buttonColorBackgroundPrimaryDisabled\n )};\n }\n :host {\n display: inline-block;\n width: fit-content;\n min-height: 42px;\n height: 1px;\n }\n\n :host([size=\"condensed\"]) {\n min-height: 32px;\n }\n `;\n\n /**\n * Type of variant.\n */\n @property({ type: String })\n variant: ButtonProps[\"intent\"] = \"primary\"\n \n /**\n * `true` if the button should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false\n \n /**\n * Set a icon in the right of button label.\n */\n @property({ type: String, reflect: true })\n rightIcon = \"\";\n \n /**\n * Set a icon in the left of button label.\n */\n @property({ type: String, reflect: true })\n leftIcon = \"\";\n \n /**\n * Link `href`. If present, this button is rendered as `<a>`.\n */\n @property({ type: String, reflect: true })\n href = \"\";\n \n /**\n * Specify the button size.\n */\n @property({type: String, reflect: true })\n size: ButtonProps[\"size\"] = \"default\"\n \n /**\n * Specify the button type.\n */\n @property({type: String, reflect: true })\n type: \"button\" | \"submit\" | \"reset\" = \"button\";\t\n \n /**\n * Specify the button role.\n */\n @property({type: String, reflect: true })\n role: string = \"button\";\n \n /**\n * Specify whether the button is loading.\n */\n @property({ type: Boolean })\n isLoading = false;\n\n connectedCallback(): void {\n super.connectedCallback();\n\n const tailwind = new CSSStyleSheet();\n tailwind.replace(tailwindStyles);\n\n const buttonStyles = new CSSStyleSheet();\n buttonStyles.replaceSync(styles);\n\n const defaultsVariables = new CSSStyleSheet();\n defaultsVariables.replaceSync(DaikinButton.styles.cssText);\n\n (this.renderRoot as ShadowRoot).adoptedStyleSheets = [\n tailwind,\n defaultsVariables,\n buttonStyles\n ];\n }\n\n render() {\n\n const buttonClassName = buttonCN({intent: this.variant, size: this.size})\n\n const content = html`\n <slot name=\"leftIcon\"></slot>\n <span><slot></slot></span>\n <slot name=\"rightIcon\"></slot>\n `; \n if(this.href) {\n return html`\n <a href=\"${this.href}\" class=\"${buttonClassName}\" role=\"${this.role as AnyRole}\">\n ${content}\n </a>`\n }\n return html`\n <button class=\"${buttonClassName}\" ?disabled=\"${this.disabled}\" type=\"${this.type}\" role=\"${this.role as AnyRole}\">\n ${content}\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'daikin-button': DaikinButton;\n }\n}\n\nexport default DaikinButton;\n"],"names":["LitElement","tailwindStyles","styles","html","css","unsafeCSS","property","customElement"],"mappings":";;;;;;;;;;;;;;AAeA,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;AAChM,IAAA,QAAQ,EAAE;AACN,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE;gBACP,gBAAgB;gBAChB,4BAA4B;AAC7B,aAAA;AACD,YAAA,SAAS,EAAE;gBACT,UAAU;gBACV,UAAU;gBACV,qBAAqB;gBACrB,uBAAuB;gBACvB,2BAA2B;gBAC3B,6BAA6B;gBAC7B,4BAA4B;gBAC5B,8BAA8B;gBAC9B,mCAAmC;gBACnC,qCAAqC;gBACrC,mCAAmC;gBACnC,iCAAiC;gBACjC,iBAAiB;gBACjB,4BAA4B;AAC7B,aAAA;AACD,YAAA,QAAQ,EAAE;gBACR,qBAAqB;gBACrB,SAAS;gBACT,aAAa;gBACb,aAAa;gBACb,4BAA4B;gBAC5B,yBAAyB;gBACzB,iCAAiC;AAClC,aAAA;AACD,YAAA,aAAa,EAAE;gBACb,cAAc;gBACd,YAAY;gBACZ,wBAAwB;gBACxB,gCAAgC;gBAChC,+BAA+B;gBAC/B,yBAAyB;gBACzB,4BAA4B;AAC7B,aAAA;AACF,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;AAChC,YAAA,SAAS,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC;AACxC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,MAAM,EAAE,SAAS;AACj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