@federball/components 0.0.3 → 0.0.4

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.
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./icon";
2
+ export declare const AccountIcon: ({ size }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=AccountIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountIcon.d.ts","sourceRoot":"","sources":["../../src/icons/AccountIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,eAAO,MAAM,WAAW,GAAI,UAAU,SAAS,4CAE9C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const AccountIcon = ({ size }) => {
3
+ return _jsx("span", { className: `font-icon text-${size}`, children: "account_circle" });
4
+ };
5
+ //# sourceMappingURL=AccountIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountIcon.js","sourceRoot":"","sources":["../../src/icons/AccountIcon.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAa,EAAE,EAAE;IACjD,OAAO,eAAM,SAAS,EAAE,kBAAkB,IAAI,EAAE,+BAAuB,CAAC;AAC1E,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { AccountIcon } from "./icons/AccountIcon";
1
2
  import { ClubIcon } from "./icons/ClubIcon";
2
3
  import { CourtIcon } from "./icons/CourtIcon";
3
4
  import { DarkModeIcon } from "./icons/DarkModeIcon";
@@ -15,5 +16,5 @@ import { PlayerIcon } from "./icons/PlayerIcon";
15
16
  import { SinglesIcon } from "./icons/SinglesIcon";
16
17
  import { TimerIcon } from "./icons/TimerIcon";
17
18
  import { TournamentIcon } from "./icons/TournamentIcon";
18
- export { ClubIcon, CourtIcon, DarkModeIcon, DrawIcon, DrawTypeIcon, DoublesIcon, EventIcon, EventTypeIcon, GameStatusIcon, GroupIcon, KnockoutIcon, LightModeIcon, OrganizationIcon, PlayerIcon, SinglesIcon, TimerIcon, TournamentIcon, };
19
+ export { AccountIcon, ClubIcon, CourtIcon, DarkModeIcon, DrawIcon, DrawTypeIcon, DoublesIcon, EventIcon, EventTypeIcon, GameStatusIcon, GroupIcon, KnockoutIcon, LightModeIcon, OrganizationIcon, PlayerIcon, SinglesIcon, TimerIcon, TournamentIcon, };
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MA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OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,GACf,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { AccountIcon } from "./icons/AccountIcon";
1
2
  import { ClubIcon } from "./icons/ClubIcon";
2
3
  import { CourtIcon } from "./icons/CourtIcon";
3
4
  import { DarkModeIcon } from "./icons/DarkModeIcon";
@@ -15,5 +16,5 @@ import { PlayerIcon } from "./icons/PlayerIcon";
15
16
  import { SinglesIcon } from "./icons/SinglesIcon";
16
17
  import { TimerIcon } from "./icons/TimerIcon";
17
18
  import { TournamentIcon } from "./icons/TournamentIcon";
18
- export { ClubIcon, CourtIcon, DarkModeIcon, DrawIcon, DrawTypeIcon, DoublesIcon, EventIcon, EventTypeIcon, GameStatusIcon, GroupIcon, KnockoutIcon, LightModeIcon, OrganizationIcon, PlayerIcon, SinglesIcon, TimerIcon, TournamentIcon, };
19
+ export { AccountIcon, ClubIcon, CourtIcon, DarkModeIcon, DrawIcon, DrawTypeIcon, DoublesIcon, EventIcon, EventTypeIcon, GameStatusIcon, GroupIcon, KnockoutIcon, LightModeIcon, OrganizationIcon, PlayerIcon, SinglesIcon, TimerIcon, TournamentIcon, };
19
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC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E,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,GACf,CAAC"}
@@ -0,0 +1,193 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer theme, base, components, utilities;
3
+ @layer theme {
4
+ :root, :host {
5
+ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
6
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
8
+ "Courier New", monospace;
9
+ --default-font-family: var(--font-sans);
10
+ --default-mono-font-family: var(--font-mono);
11
+ }
12
+ }
13
+ @layer base {
14
+ *, ::after, ::before, ::backdrop, ::file-selector-button {
15
+ box-sizing: border-box;
16
+ margin: 0;
17
+ padding: 0;
18
+ border: 0 solid;
19
+ }
20
+ html, :host {
21
+ line-height: 1.5;
22
+ -webkit-text-size-adjust: 100%;
23
+ tab-size: 4;
24
+ font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
25
+ font-feature-settings: var(--default-font-feature-settings, normal);
26
+ font-variation-settings: var(--default-font-variation-settings, normal);
27
+ -webkit-tap-highlight-color: transparent;
28
+ }
29
+ hr {
30
+ height: 0;
31
+ color: inherit;
32
+ border-top-width: 1px;
33
+ }
34
+ abbr:where([title]) {
35
+ -webkit-text-decoration: underline dotted;
36
+ text-decoration: underline dotted;
37
+ }
38
+ h1, h2, h3, h4, h5, h6 {
39
+ font-size: inherit;
40
+ font-weight: inherit;
41
+ }
42
+ a {
43
+ color: inherit;
44
+ -webkit-text-decoration: inherit;
45
+ text-decoration: inherit;
46
+ }
47
+ b, strong {
48
+ font-weight: bolder;
49
+ }
50
+ code, kbd, samp, pre {
51
+ font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
52
+ font-feature-settings: var(--default-mono-font-feature-settings, normal);
53
+ font-variation-settings: var(--default-mono-font-variation-settings, normal);
54
+ font-size: 1em;
55
+ }
56
+ small {
57
+ font-size: 80%;
58
+ }
59
+ sub, sup {
60
+ font-size: 75%;
61
+ line-height: 0;
62
+ position: relative;
63
+ vertical-align: baseline;
64
+ }
65
+ sub {
66
+ bottom: -0.25em;
67
+ }
68
+ sup {
69
+ top: -0.5em;
70
+ }
71
+ table {
72
+ text-indent: 0;
73
+ border-color: inherit;
74
+ border-collapse: collapse;
75
+ }
76
+ :-moz-focusring {
77
+ outline: auto;
78
+ }
79
+ progress {
80
+ vertical-align: baseline;
81
+ }
82
+ summary {
83
+ display: list-item;
84
+ }
85
+ ol, ul, menu {
86
+ list-style: none;
87
+ }
88
+ img, svg, video, canvas, audio, iframe, embed, object {
89
+ display: block;
90
+ vertical-align: middle;
91
+ }
92
+ img, video {
93
+ max-width: 100%;
94
+ height: auto;
95
+ }
96
+ button, input, select, optgroup, textarea, ::file-selector-button {
97
+ font: inherit;
98
+ font-feature-settings: inherit;
99
+ font-variation-settings: inherit;
100
+ letter-spacing: inherit;
101
+ color: inherit;
102
+ border-radius: 0;
103
+ background-color: transparent;
104
+ opacity: 1;
105
+ }
106
+ :where(select:is([multiple], [size])) optgroup {
107
+ font-weight: bolder;
108
+ }
109
+ :where(select:is([multiple], [size])) optgroup option {
110
+ padding-inline-start: 20px;
111
+ }
112
+ ::file-selector-button {
113
+ margin-inline-end: 4px;
114
+ }
115
+ ::placeholder {
116
+ opacity: 1;
117
+ }
118
+ @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
119
+ ::placeholder {
120
+ color: currentcolor;
121
+ @supports (color: color-mix(in lab, red, red)) {
122
+ color: color-mix(in oklab, currentcolor 50%, transparent);
123
+ }
124
+ }
125
+ }
126
+ textarea {
127
+ resize: vertical;
128
+ }
129
+ ::-webkit-search-decoration {
130
+ -webkit-appearance: none;
131
+ }
132
+ ::-webkit-date-and-time-value {
133
+ min-height: 1lh;
134
+ text-align: inherit;
135
+ }
136
+ ::-webkit-datetime-edit {
137
+ display: inline-flex;
138
+ }
139
+ ::-webkit-datetime-edit-fields-wrapper {
140
+ padding: 0;
141
+ }
142
+ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
143
+ padding-block: 0;
144
+ }
145
+ ::-webkit-calendar-picker-indicator {
146
+ line-height: 1;
147
+ }
148
+ :-moz-ui-invalid {
149
+ box-shadow: none;
150
+ }
151
+ button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
152
+ appearance: button;
153
+ }
154
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
155
+ height: auto;
156
+ }
157
+ [hidden]:where(:not([hidden="until-found"])) {
158
+ display: none !important;
159
+ }
160
+ }
161
+ @layer utilities {
162
+ .table {
163
+ display: table;
164
+ }
165
+ }
166
+ @layer base {
167
+ @font-face {
168
+ font-family: "Material Symbols Outlined";
169
+ font-style: normal;
170
+ font-weight: 100 700;
171
+ font-display: block;
172
+ src: url(https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined);
173
+ }
174
+ }
175
+ @layer components {
176
+ .font-icon {
177
+ font-family: "Material Symbols Outlined", sans-serif;
178
+ font-weight: normal;
179
+ font-style: normal;
180
+ font-size: 24px;
181
+ line-height: 1;
182
+ letter-spacing: normal;
183
+ text-transform: none;
184
+ display: inline-block;
185
+ white-space: nowrap;
186
+ word-wrap: normal;
187
+ direction: ltr;
188
+ -webkit-font-smoothing: antialiased;
189
+ -moz-osx-font-smoothing: grayscale;
190
+ text-rendering: optimizeLegibility;
191
+ font-feature-settings: "liga";
192
+ }
193
+ }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@federball/components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
+ "type": "module",
4
5
  "description": "Component library for federball.app",
5
6
  "source": "src/index.ts",
6
7
  "main": "./dist/index.js",
@@ -12,15 +13,18 @@
12
13
  "import": "./dist/index.js",
13
14
  "require": "./dist/index.js"
14
15
  },
15
- "./styles.css": "./dist/icons/icon.css"
16
+ "./styles.css": "./dist/styles.css"
16
17
  },
17
18
  "files": [
18
19
  "dist"
19
20
  ],
21
+ "keywords": [
22
+ "federball"
23
+ ],
20
24
  "scripts": {
21
- "build": "npm run clean && tsc && npm run copy-css",
25
+ "build": "npm run clean && tsc && npm run build:css",
26
+ "build:css": "postcss src/styles.css -o dist/styles.css --verbose",
22
27
  "clean": "rm -rf dist",
23
- "copy-css": "mkdir -p dist/icons && cp src/icons/icon.css dist/icons/",
24
28
  "prepublishOnly": "npm run build",
25
29
  "format": "prettier --write .",
26
30
  "format:check": "prettier --check .",
@@ -44,14 +48,17 @@
44
48
  "react": ">=18.0.0",
45
49
  "react-dom": ">=18.0.0"
46
50
  },
47
- "dependencies": {},
48
51
  "devDependencies": {
52
+ "@tailwindcss/postcss": "^4.2.2",
49
53
  "@types/react": "19.2.3",
50
54
  "@types/react-dom": "19.2.3",
51
55
  "husky": "^9.1.7",
56
+ "postcss": "^8.5.8",
57
+ "postcss-cli": "^11.0.1",
52
58
  "prettier": "^3.8.1",
53
59
  "react": "19.2.3",
54
60
  "react-dom": "19.2.3",
61
+ "tailwindcss": "^4.2.2",
55
62
  "typescript": "^5.9.3"
56
63
  }
57
64
  }
@@ -1,25 +0,0 @@
1
- @font-face {
2
- font-family: "Material Symbols Outlined";
3
- font-style: normal;
4
- font-weight: 100 700;
5
- font-display: block;
6
- src: url(https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined);
7
- }
8
-
9
- .font-icon {
10
- font-family: "Material Symbols Outlined", sans-serif;
11
- font-weight: normal;
12
- font-style: normal;
13
- font-size: 24px;
14
- line-height: 1;
15
- letter-spacing: normal;
16
- text-transform: none;
17
- display: inline-block;
18
- white-space: nowrap;
19
- word-wrap: normal;
20
- direction: ltr;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- text-rendering: optimizeLegibility;
24
- font-feature-settings: "liga";
25
- }