@clubmed/trident-ui 1.3.0-beta.9 → 1.3.0-rc.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.
- package/CHANGELOG.md +120 -0
- package/README.md +8 -0
- package/assets/icons/ResortFill/PHUC_Fill.svg +287 -10
- package/assets/icons/ResortFill/TOMC_Fill.svg +199 -14
- package/assets/icons/ResortFill-EC/KIPC_EC_Fill.svg +499 -0
- package/assets/icons/ResortOutline/PHUC_Outline.svg +156 -6
- package/assets/icons/ResortOutline/TOMC_Outline.svg +99 -6
- package/assets/icons/ResortOutline-EC/KIPC_EC_Outline.svg +380 -0
- package/assets/icons/Transports/Taxi.svg +5 -0
- package/assets/icons/Utilities/Doorhanger.svg +5 -0
- package/assets/{style.css → trident-ui.css} +1 -1
- package/atoms/Clickable/Clickable.d.ts +5 -0
- package/atoms/Clickable/Clickable.js +25 -0
- package/atoms/Clickable/Clickable.js.map +1 -0
- package/atoms/Heading/Heading.d.ts +6 -0
- package/atoms/Heading/Heading.js +14 -0
- package/atoms/Heading/Heading.js.map +1 -0
- package/atoms/Heading/HeadingGroup.d.ts +7 -0
- package/atoms/Heading/HeadingGroup.js +15 -0
- package/atoms/Heading/HeadingGroup.js.map +1 -0
- package/atoms/Icons/Iconics.d.ts +1 -1
- package/atoms/Icons/IconsResolver.d.ts +1 -1
- package/atoms/Icons/contexts/IconsContext.d.ts +1 -1
- package/atoms/Icons/svg/SvgIcon.d.ts +1 -1
- package/atoms/Icons/svg-use/SvgUseIcon.d.ts +1 -1
- package/atoms/Image/Image.d.ts +7 -0
- package/atoms/Image/Image.js +18 -0
- package/atoms/Image/Image.js.map +1 -0
- package/atoms/Prose/Prose.d.ts +5 -0
- package/atoms/Prose/Prose.js +18 -0
- package/atoms/Prose/Prose.js.map +1 -0
- package/chunks/ResizeObserver.js +287 -0
- package/chunks/ResizeObserver.js.map +1 -0
- package/chunks/_commonjsHelpers.js +19 -14
- package/chunks/_commonjsHelpers.js.map +1 -1
- package/chunks/index.js +36 -33
- package/chunks/index.js.map +1 -1
- package/chunks/plugin.js +57 -46
- package/chunks/plugin.js.map +1 -1
- package/contexts/Devices/Device.d.ts +3 -3
- package/contexts/Devices/hooks/useQueries.d.ts +2 -2
- package/contexts/Devices/reducers/reducer.d.ts +2 -2
- package/contexts/TridentUIConfig.d.ts +1 -1
- package/contexts/TridentUIConfig.js +1265 -653
- package/contexts/TridentUIConfig.js.map +1 -1
- package/helpers/colors/colors.d.ts +108 -0
- package/helpers/colors/colors.js +132 -0
- package/helpers/colors/colors.js.map +1 -0
- package/hooks/useKeyboardControls.d.ts +1 -1
- package/hooks/useResizeObserver.d.ts +2 -0
- package/hooks/useResizeObserver.js +84 -0
- package/hooks/useResizeObserver.js.map +1 -0
- package/hooks/useSafeBoop.d.ts +2 -2
- package/molecules/Arrows/Arrows.d.ts +2 -2
- package/molecules/Avatar.d.ts +1 -1
- package/molecules/Avatar.js +24 -24
- package/molecules/Avatar.js.map +1 -1
- package/molecules/Backdrop.d.ts +1 -1
- package/molecules/Breadcrumb.d.ts +7 -11
- package/molecules/Breadcrumb.js +44 -36
- package/molecules/Breadcrumb.js.map +1 -1
- package/molecules/Breadcrumb.themes.d.ts +8 -0
- package/molecules/Breadcrumb.themes.js +15 -0
- package/molecules/Breadcrumb.themes.js.map +1 -0
- package/molecules/Buttons/ArrowButton.d.ts +1 -1
- package/molecules/Buttons/Button.d.ts +3 -3
- package/molecules/Buttons/ButtonAnchor.d.ts +2 -2
- package/molecules/Buttons/ButtonContent.d.ts +2 -2
- package/molecules/Buttons/FakeButton.d.ts +2 -3
- package/molecules/Buttons/InertButton.d.ts +2 -2
- package/molecules/Buttons/v2/Button.d.ts +2096 -2097
- package/molecules/Buttons/v2/Button.type.d.ts +5 -2
- package/molecules/Buttons/v2/Button.type.js +8 -5
- package/molecules/Buttons/v2/Button.type.js.map +1 -1
- package/molecules/Card.d.ts +1 -11
- package/molecules/Card.js +2 -34
- package/molecules/Card.js.map +1 -1
- package/molecules/Cards/Card.d.ts +13 -0
- package/molecules/Cards/Card.js +22 -0
- package/molecules/Cards/Card.js.map +1 -0
- package/molecules/Cards/CardAspectRatios.d.ts +6 -0
- package/molecules/Cards/CardAspectRatios.js +10 -0
- package/molecules/Cards/CardAspectRatios.js.map +1 -0
- package/molecules/Cards/CardBackground.d.ts +4 -0
- package/molecules/Cards/CardBackground.js +30 -0
- package/molecules/Cards/CardBackground.js.map +1 -0
- package/molecules/Cards/CardBackgroundContext.d.ts +6 -0
- package/molecules/Cards/CardBackgroundContext.js +10 -0
- package/molecules/Cards/CardBackgroundContext.js.map +1 -0
- package/molecules/Cards/CardClickable.d.ts +6 -0
- package/molecules/Cards/CardClickable.js +37 -0
- package/molecules/Cards/CardClickable.js.map +1 -0
- package/molecules/Cards/ExpandableCard.d.ts +14 -0
- package/molecules/Cards/ExpandableCard.js +80 -0
- package/molecules/Cards/ExpandableCard.js.map +1 -0
- package/molecules/Cards/v2/Card.d.ts +15 -0
- package/molecules/Cards/v2/Card.js +34 -0
- package/molecules/Cards/v2/Card.js.map +1 -0
- package/molecules/Chip.d.ts +9 -0
- package/molecules/Chip.js +31 -0
- package/molecules/Chip.js.map +1 -0
- package/molecules/Chip.themes.d.ts +12 -0
- package/molecules/Chip.themes.js +24 -0
- package/molecules/Chip.themes.js.map +1 -0
- package/molecules/ElasticHeight.d.ts +6 -27
- package/molecules/ElasticHeight.js +27 -33
- package/molecules/ElasticHeight.js.map +1 -1
- package/molecules/Forms/Checkboxes/Checkbox.d.ts +1 -1
- package/molecules/Forms/Checkboxes/Checkbox.js +43 -43
- package/molecules/Forms/Checkboxes/Checkbox.js.map +1 -1
- package/molecules/Forms/Checkboxes/Checkboxes.d.ts +2 -2
- package/molecules/Forms/DateField.d.ts +2 -2
- package/molecules/Forms/DateField.js +60 -61
- package/molecules/Forms/DateField.js.map +1 -1
- package/molecules/Forms/Filter.d.ts +1 -2
- package/molecules/Forms/Filter.js +29 -29
- package/molecules/Forms/Filter.js.map +1 -1
- package/molecules/Forms/FormControl.d.ts +4 -4
- package/molecules/Forms/FormLabel.d.ts +1 -1
- package/molecules/Forms/NumberField.d.ts +280 -280
- package/molecules/Forms/Password/Password.d.ts +1 -1
- package/molecules/Forms/Password/ValidationMessage.d.ts +1 -1
- package/molecules/Forms/Radios/Radio.d.ts +4 -2
- package/molecules/Forms/Radios/Radio.js +29 -28
- package/molecules/Forms/Radios/Radio.js.map +1 -1
- package/molecules/Forms/Radios/RadioGroup.d.ts +2 -2
- package/molecules/Forms/Radios/RadioGroup.js +70 -33
- package/molecules/Forms/Radios/RadioGroup.js.map +1 -1
- package/molecules/Forms/Range.d.ts +1 -2
- package/molecules/Forms/Range.js +144 -421
- package/molecules/Forms/Range.js.map +1 -1
- package/molecules/Forms/Select.d.ts +3 -3
- package/molecules/Forms/Switch.d.ts +1 -1
- package/molecules/Forms/TextField.d.ts +3 -3
- package/molecules/HamburgerIcon.d.ts +1 -1
- package/molecules/Link.d.ts +2 -2
- package/molecules/Loader.d.ts +1 -1
- package/molecules/Pagination.d.ts +2 -2
- package/molecules/Popin.d.ts +1 -1
- package/molecules/Spinner.d.ts +1 -1
- package/molecules/Tabs/Tab.d.ts +2 -3
- package/molecules/Tabs/Tab.js +41 -42
- package/molecules/Tabs/Tab.js.map +1 -1
- package/molecules/Tabs/TabList.d.ts +1 -1
- package/molecules/Tabs/TabList.js +21 -21
- package/molecules/Tabs/TabList.js.map +1 -1
- package/molecules/Tabs/TabPanel.d.ts +1 -1
- package/molecules/Tabs/TabPanel.js +13 -13
- package/molecules/Tabs/TabPanel.js.map +1 -1
- package/molecules/Tabs/Tabs.d.ts +1 -1
- package/molecules/Tabs/TabsBody.d.ts +1 -1
- package/molecules/Tabs/context/TabControl.d.ts +2 -2
- package/molecules/Tabs/hooks/tabControl.d.ts +5 -5
- package/molecules/Tag.d.ts +43 -0
- package/molecules/Tag.js +73 -0
- package/molecules/Tag.js.map +1 -0
- package/package.json +48 -45
- package/styles/index.css +1 -1
- package/tailwind/plugins/animationDelay.d.ts +2 -2
- package/tailwind/plugins/hocus.d.ts +2 -2
- package/tailwind/plugins/lineClampFix.d.ts +2 -2
- package/tailwind/plugins/popover.d.ts +2 -2
- package/tailwind/plugins/startingStyle.d.ts +2 -2
- package/tailwind/plugins/transitionBehavior.d.ts +2 -2
- package/tailwind/tailwind.preset.d.ts +50 -50
- package/types/LiteralUnion.d.js +2 -0
- package/types/LiteralUnion.d.js.map +1 -0
- package/types/Theme.d.js +2 -0
- package/types/Theme.d.js.map +1 -0
- package/assets/icons/ResortFill/KIPC_Fill.svg +0 -12
- package/assets/icons/ResortOutline/KIPC_Outline.svg +0 -7
package/chunks/plugin.js
CHANGED
|
@@ -1,53 +1,64 @@
|
|
|
1
|
-
import { g
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
handler: t,
|
|
15
|
-
config: e
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
u.withOptions = function(t, e = () => ({})) {
|
|
19
|
-
const r = function(l) {
|
|
1
|
+
import { g } from "./_commonjsHelpers.js";
|
|
2
|
+
var l = {}, o = {}, c;
|
|
3
|
+
function s() {
|
|
4
|
+
return c || (c = 1, function(e) {
|
|
5
|
+
Object.defineProperty(e, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), Object.defineProperty(e, "default", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return i;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function n(t, r) {
|
|
20
14
|
return {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
config: e(l)
|
|
15
|
+
handler: t,
|
|
16
|
+
config: r
|
|
24
17
|
};
|
|
25
|
-
};
|
|
26
|
-
return r.__isOptionsFunction = !0, r.__pluginFunction = t, r.__configFunction = e, r;
|
|
27
|
-
};
|
|
28
|
-
const i = u;
|
|
29
|
-
})(c);
|
|
30
|
-
(function(n) {
|
|
31
|
-
Object.defineProperty(n, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), Object.defineProperty(n, "default", {
|
|
34
|
-
enumerable: !0,
|
|
35
|
-
get: function() {
|
|
36
|
-
return t;
|
|
37
18
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
19
|
+
n.withOptions = function(t, r = () => ({})) {
|
|
20
|
+
const u = function(a) {
|
|
21
|
+
return {
|
|
22
|
+
__options: a,
|
|
23
|
+
handler: t(a),
|
|
24
|
+
config: r(a)
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
return u.__isOptionsFunction = !0, u.__pluginFunction = t, u.__configFunction = r, u;
|
|
43
28
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
const i = n;
|
|
30
|
+
}(o)), o;
|
|
31
|
+
}
|
|
32
|
+
var d;
|
|
33
|
+
function P() {
|
|
34
|
+
return d || (d = 1, function(e) {
|
|
35
|
+
Object.defineProperty(e, "__esModule", {
|
|
36
|
+
value: !0
|
|
37
|
+
}), Object.defineProperty(e, "default", {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
get: function() {
|
|
40
|
+
return t;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const n = /* @__PURE__ */ i(s());
|
|
44
|
+
function i(r) {
|
|
45
|
+
return r && r.__esModule ? r : {
|
|
46
|
+
default: r
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const t = n.default;
|
|
50
|
+
}(l)), l;
|
|
51
|
+
}
|
|
52
|
+
var f, _;
|
|
53
|
+
function p() {
|
|
54
|
+
if (_) return f;
|
|
55
|
+
_ = 1;
|
|
56
|
+
let e = P();
|
|
57
|
+
return f = (e.__esModule ? e : { default: e }).default, f;
|
|
58
|
+
}
|
|
59
|
+
var v = p();
|
|
60
|
+
const h = /* @__PURE__ */ g(v);
|
|
50
61
|
export {
|
|
51
|
-
|
|
62
|
+
h as p
|
|
52
63
|
};
|
|
53
64
|
//# sourceMappingURL=plugin.js.map
|
package/chunks/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../../node_modules/tailwindcss/lib/util/createPlugin.js","../../node_modules/tailwindcss/lib/public/create-plugin.js","../../node_modules/tailwindcss/plugin.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n"],"names":["exports","_default","createPlugin","plugin","config","pluginFunction","configFunction","optionsFunction","options","_createPlugin","_interop_require_default","require$$0","obj"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../../node_modules/tailwindcss/lib/util/createPlugin.js","../../node_modules/tailwindcss/lib/public/create-plugin.js","../../node_modules/tailwindcss/plugin.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n"],"names":["exports","_default","createPlugin","plugin","config","pluginFunction","configFunction","optionsFunction","options","_createPlugin","_interop_require_default","require$$0","obj"],"mappings":";;;;AACA,WAAO,eAAcA,GAAU,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC,GACD,OAAO,eAAeA,GAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAOC;AAAA,MACf;AAAA,IACA,CAAC;AACD,aAASC,EAAaC,GAAQC,GAAQ;AAClC,aAAO;AAAA,QACH,SAASD;AAAA,QACT,QAAAC;AAAA;IAER;AACA,IAAAF,EAAa,cAAc,SAASG,GAAgBC,IAAiB,OAAK,CAAA,IAAK;AAC3E,YAAMC,IAAkB,SAASC,GAAS;AACtC,eAAO;AAAA,UACH,WAAWA;AAAA,UACX,SAASH,EAAeG,CAAO;AAAA,UAC/B,QAAQF,EAAeE,CAAO;AAAA;MAE1C;AACI,aAAAD,EAAgB,sBAAsB,IAGtCA,EAAgB,mBAAmBF,GACnCE,EAAgB,mBAAmBD,GAC5BC;AAAA,IACX;AACA,UAAMN,IAAWC;AAAA;;;;;AC9BjB,WAAO,eAAcF,GAAU,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC,GACD,OAAO,eAAeA,GAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAOC;AAAA,MACf;AAAA,IACA,CAAC;AACD,UAAMQ,IAA8B,gBAAAC,EAAyBC,GAA+B;AAC5F,aAASD,EAAyBE,GAAK;AACnC,aAAOA,KAAOA,EAAI,aAAaA,IAAM;AAAA,QACjC,SAASA;AAAA;IAEjB;AACA,UAAMX,IAAWQ,EAAc;AAAA;;;;;;AChB/B,MAAIP,IAAeS,EAAA;AACnBR,SAAAA,KAAkBD,EAAa,aAAaA,IAAe,EAAE,SAASA,KAAgB;;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import { Direction } from '../../types/Direction';
|
|
3
|
+
import { Devices } from '../Device';
|
|
4
4
|
interface Props {
|
|
5
5
|
device: Devices;
|
|
6
6
|
direction?: Direction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Direction } from '../../../types/Direction';
|
|
2
|
+
import { Devices } from '../../../types/Devices';
|
|
3
3
|
export declare function useQueries({ device, direction }: {
|
|
4
4
|
device: Devices;
|
|
5
5
|
direction: Direction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Direction } from '../../../types/Direction';
|
|
2
|
+
import { Devices } from '../../../types/Devices';
|
|
3
3
|
export interface DeviceState {
|
|
4
4
|
all: boolean;
|
|
5
5
|
small: boolean;
|